code: def create_reverse_dependency_map():
      """
      Create the dependency map from module/test filename to the list of modules/tests that depend on it (even
      recursively).
      """
      modules = [
          str(f.relative_to(PATH_TO_TRANFORMERS))
          for f in (
              Path(PATH_TO_TRANFORMERS) / "src/transformers"
          ).glob("**/*.py")
      ]
      # We grab all the dependencies of each module.
      direct_deps = {m: get_module_dependencies(m) for m in modules}
  
      # We add all the dependencies of each test file
      tests = [
          str(f.relative_to(PATH_TO_TRANFORMERS))
          for f in (Path(PATH_TO_TRANFORMERS) / "tests").glob("**/*.py")
      ]
      direct_deps.update({t: get_test_dependencies(t) for t in tests})
  
      all_files = modules + tests
  
      # This recurses the dependencies
      something_changed = True
      while something_changed:
          something_changed = False
          for m in all_files:
              for d in direct_deps[m]:
                  if d not in direct_deps:
                      raise ValueError(f"KeyError:{d}. From {m}")
                  for dep in direct_deps[d]:
                      if dep not in direct_deps[m]:
                          direct_deps[m].append(dep)
                          something_changed = True
  
      # Finally we can build the reverse map.
      reverse_map = collections.defaultdict(list)
      for m in all_files:
          if m.endswith("__init__.py"):
              reverse_map[m].extend(direct_deps[m])
          for d in direct_deps[m]:
              reverse_map[d].append(m)
  
      return reverse_map
  
imports: import argparse
  import collections
  import json
  import os
  import re
  from contextlib import contextmanager
  from pathlib import Path
  from git import Repo
label_desc: Use image node_id 12 for calling a global function with example usage: create_reverse_dependency_map() and returns: reverse_map