code: def get_dependencies_from_pkg(globs, base_path):
      dependencies = set()
      for dist in pkg_resources.working_set:
          if dist.version == "0.0.0":
              continue  # ugly hack to deal with pkg-resource version bug
          dependencies.add(
              PackageDependency(dist.project_name, dist.version)
          )
      return dependencies
  
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 17 for calling a global function with example usage: get_dependencies_from_pkg(globs, base_path) and returns: dependencies