code: def get_extra_requires(path, add_all=True):
      """Currently not used. Dependencies are
      hard-coded below. We currently have a problem
      with setuptools and external extra dependency file"""
      with open(path) as fp:
          extra_deps = defaultdict(set)
          for line in fp:
              if line.strip() and not line.startswith("#"):
                  tags = set()
                  if ":" in line:
                      k, v = line.split(":")
                      tags.update(vv.strip() for vv in v.split(","))
                  for t in tags:
                      extra_deps[t].add(k)
  
          # add tag `all` at the end
          if add_all:
              extra_deps["all"] = set(
                  vv for v in extra_deps.values() for vv in v
              )
  
      return extra_deps
  
imports: import setuptools
  import codecs
  import os.path
  from collections import defaultdict
label_desc: Use image node_id 3 for calling a global function with example usage: get_extra_requires(path, add_all) and returns: extra_deps