code: def get_optional_dependencies(rel_path):
      # read _global_checks.py and construct a list of optional dependencies
      flag = False
      to_parse = "{"
  
      for line in read(rel_path).splitlines():
          if flag:
              if line == "}":  # end
                  to_parse += line
                  break
              to_parse += line.strip()
          if line.startswith("OPTIONAL_DEPENDENCIES"):  # start
              flag = True
  
      od_dict = eval(to_parse)
      od_list = [k + ">=" + v for k, v in od_dict.items()]
      del od_list[
          0
      ]  # remove artificial dependency used in test_global.py
      return od_list
  
imports: import codecs
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: get_optional_dependencies(rel_path) and returns: od_list