original_docstring: Give module where calling function is defined.
  
      :level: levels deep to look up the stack frame
      :return: a Python module
      
docstring: Give module where calling function is defined.
docstring_tokens: Give module where calling function is defined .
code: def caller_module(level=2):
      """Give module where calling function is defined.
  
      :level: levels deep to look up the stack frame
      :return: a Python module
      """
      module_globals = sys._getframe(level).f_globals
      module_name = module_globals.get("__name__") or "__main__"
      module = sys.modules[module_name]
      return module
code_tokens: def caller_module ( level = 2 ) : module_globals = sys . _getframe ( level ) . f_globals module_name = module_globals . get ( "__name__" ) or "__main__" module = sys . modules [ module_name ] return module
short_docstring: Give module where calling function is defined.
short_docstring_tokens: Give module where calling function is defined .
comment: """Give module where calling function is defined.
  
      :level: levels deep to look up the stack frame
      :return: a Python module
      """