code: def get_dependencies(env_yml_file):
      """
      Read the dependencies from a Conda environment file in YAML
      and return a list of such dependencies (from conda and pip list)
      Be sure to match packages specification for each of:
      - Conda : http://conda.pydata.org/docs/spec.html#build-version-spec
      - Pip & Setuptool :
         - http://pythonhosted.org/setuptools/setuptools.html?highlight=install_require#declaring-dependencies
         - https://pythonhosted.org/setuptools/pkg_resources.html#requirement-objects
      """
      import yaml
  
      with open_here(env_yml_file) as f:
          environment = yaml.load(f)
      conda_dependencies = []
      package_map = {
          "pytables": "tables",  # insert 'tables' instead of 'pytables'
          "yaafe": "",
          "essentia": "",
          "pytorch": "",
          # Yaafe and essentia are not seen by pip during pip install -e .
          # and not visible with pip list
          # TODO: check if setuptools can help
      }
      for dep in environment["dependencies"]:
          if isinstance(dep, str) and not (dep.startswith("python")):
              if dep in package_map:
                  conda_dependencies.append(package_map[dep])
              else:
                  conda_dependencies.append(dep)
          elif isinstance(dep, dict) and "pip" in dep:
              pip_dependencies = dep["pip"]
  
      return pip_dependencies
  
file_path: TimeSide/setup.py
imports: import os
  import sys
  from setuptools import setup
  from setuptools.command.test import test
label_desc: Use image node_id 2 for calling a global function with example usage: get_dependencies(env_yml_file) and returns: pip_dependencies