code: def get_py_file_if_possible(pyc_name):
      """Try to retrieve a X.py file for a given X.py[c] file."""
      if pyc_name.endswith((".py", ".so", ".pyd", ".ipynb")):
          return pyc_name
      assert pyc_name.endswith(".pyc")
      non_compiled_file = pyc_name[:-1]
      if os.path.exists(non_compiled_file):
          return non_compiled_file
      return pyc_name
  
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 1 for calling a global function with example usage: get_py_file_if_possible(pyc_name) and returns: pyc_name, pyc_name, non_compiled_file