code: def get_fullpath_from_main_file() -> pathlib.Path:
      """try to get it from __main__.__file__ - does not work under pytest, doctest
  
      >>> # test no attrib __main__.__file__
      >>> save_main_file = str(__main__.__file__)
      >>> delattr(__main__, '__file__')
      >>> assert get_fullpath_from_main_file() == empty_path
      >>> setattr(__main__, '__file__', save_main_file)
  
      """
      if not hasattr(sys.modules["__main__"], "__file__"):
          return empty_path
  
      arg_string = str(sys.modules["__main__"].__file__)
      valid_executable_path = get_valid_executable_path_or_empty_path(
          arg_string
      )
      return valid_executable_path
  
file_path: neptune-client/src/neptune/vendor/lib_programname.py
imports: import pathlib
  import sys
  import __main__
label_desc: Use image node_id 2 for calling a global function with example usage: get_fullpath_from_main_file() and returns: valid_executable_path, empty_path