parameters: (code, run_globals, init_globals=None,
                mod_name=None, mod_fname=None,
                mod_loader=None, pkg_name=None)
return_statement: return run_globals
docstring: Helper to run code in nominated namespace
docstring_summary: Helper to run code in nominated namespace
docstring_tokens: Helper to run code in nominated namespace
function: def _run_code(code, run_globals, init_globals=None,
                mod_name=None, mod_fname=None,
                mod_loader=None, pkg_name=None):
      """Helper to run code in nominated namespace"""
      if init_globals is not None:
          run_globals.update(init_globals)
      run_globals.update(__name__ = mod_name,
                         __file__ = mod_fname,
                         __loader__ = mod_loader,
                         __package__ = pkg_name)
      exec code in run_globals
      return run_globals
function_tokens: def _run_code ( code , run_globals , init_globals = None , mod_name = None , mod_fname = None , mod_loader = None , pkg_name = None ) : if init_globals is not None : run_globals . update ( init_globals ) run_globals . update ( __name__ = mod_name , __file__ = mod_fname , __loader__ = mod_loader , __package__ = pkg_name ) exec code in run_globals return run_globals