Add set_code_hash
function and example
#1203
Merged
set_code_hash
function and example
#1203