code: def get_fullpath_from_sys_argv() -> pathlib.Path:
      """try to get it from sys_argv - does not work when loaded from uwsgi, works in eclipse and pydev
  
      >>> # force test invalid sys.path
      >>> save_sys_argv = list(sys.argv)
      >>> invalid_path = str((pathlib.Path(__file__).parent / 'invalid_file.py'))  # .resolve() seems not to work on a non existing file in python 3.5
      >>> sys.argv = [invalid_path]
      >>> assert get_fullpath_from_sys_argv() == pathlib.Path()
      >>> sys.argv = list(save_sys_argv)
  
      >>> # force test valid sys.path
      >>> save_sys_path = list(sys.argv)
      >>> valid_path = str((pathlib.Path(__file__).resolve()))
      >>> sys.argv = [valid_path]
      >>> assert get_fullpath_from_sys_argv() == pathlib.Path(valid_path)
      >>> sys.argv = list(save_sys_argv)
  
  
      """
  
      for arg_string in sys.argv:
          valid_executable_path = (
              get_valid_executable_path_or_empty_path(arg_string)
          )
          if valid_executable_path != empty_path:
              return valid_executable_path
      return empty_path
  
file_path: neptune-client/src/neptune/vendor/lib_programname.py
imports: import pathlib
  import sys
  import __main__
label_desc: Use image node_id 3 for calling a global function with example usage: get_fullpath_from_sys_argv() and returns: empty_path, valid_executable_path