docs: def rp_module_level_in_stack():
      """
      Returns true if we're during a rootpy import
      """
      from traceback import extract_stack
      from rootpy import _ROOTPY_SOURCE_PATH
      modlevel_files = [filename for filename, _, func, _ in extract_stack()
                        if func == "<module>"]
  
      return any(path.startswith(_ROOTPY_SOURCE_PATH) for path in modlevel_files)