parameters: (module, global_variables)
docstring: Executes the provided module as if it were provided as '-m module'. The
      functionality is implemented using `runpy.run_module`, which was added in
      Python 2.5.
docstring_summary: Executes the provided module as if it were provided as '-m module'. The
      functionality is implemented using `runpy.run_module`, which was added in
      Python 2.5.
docstring_tokens: Executes the provided module as if it were provided as - m module . The functionality is implemented using runpy . run_module which was added in Python 2 . 5 .
function: def exec_module(module, global_variables):
      '''Executes the provided module as if it were provided as '-m module'. The
      functionality is implemented using `runpy.run_module`, which was added in
      Python 2.5.
      '''
      import runpy
      runpy.run_module(module, global_variables, run_name=global_variables.get('__name__'), alter_sys=True)
function_tokens: def exec_module ( module , global_variables ) : import runpy runpy . run_module ( module , global_variables , run_name = global_variables . get ( '__name__' ) , alter_sys = True )