code: def get_main_file(globs, save_git_info):
      filename = globs.get("__file__")
  
      if filename is None:
          experiment_path = os.path.abspath(os.path.curdir)
          main = None
      else:
          main = Source.create(globs.get("__file__"), save_git_info)
          experiment_path = os.path.dirname(main.filename)
      return experiment_path, main
  
imports: import functools
  import hashlib
  import os.path
  import re
  import sys
  from pathlib import Path
  import pkg_resources
  import sacred.optional
  from sacred import SETTINGS
  from sacred.utils import iter_prefixes
label_desc: Use image node_id 6 for calling a global function with example usage: get_main_file(globs, save_git_info) and returns: experiment_path,  main