method set_code code =
    call_method_void sv "code" [sv_of_string code]