code: def get_dependencies(env_yml_file):
      
      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 conda_dependencies + pip_dependencies
docs: 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