def shim_xmodule_js(block, fragment):
 if (not fragment.js_init_fn):
  fragment.initialize_js('XBlockToXModuleShim')
  fragment.json_init_args = {'xmodule-type': block.js_module_name}

def shim_xmodule_js ( block , fragment ) : if ( not fragment . js_init_fn ) : fragment . initialize_js ( 'XBlockToXModuleShim' ) fragment . json_init_args = { 'xmodule-type' : block . js_module_name }
set up the xblock -> xmodule shim on the supplied :class:xblock .