code: def get_path(path, prefix=None):
      if not is_url(path):
          if prefix is None:
              prefix = PREFIX
          elif prefix.startswith("git+file"):
              parts = path.split("/")
              path = "/" + "/".join(parts[1:]) + "@" + parts[0]
          path = prefix + path
      return infer_source_file(path)
  
file_path: snakemake/snakemake/wrapper.py
imports: from snakemake.exceptions import WorkflowError
  from snakemake.script import script
  from snakemake.sourcecache import SourceCache, infer_source_file
label_desc: Use image node_id 2 for calling a global function with example usage: get_path(path, prefix) and returns: infer_source_file