code: def get_conda_env(path, prefix=None):
      path = get_path(path, prefix=prefix)
      if is_script(path):
          # URLs and posixpaths share the same separator. Hence use posixpath here.
          path = path.get_basedir()
      return path.join("environment.yaml")
  
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 6 for calling a global function with example usage: get_conda_env(path, prefix) and returns: path