code: def test_create_reverse_dependency_map(self):
      with tempfile.TemporaryDirectory() as tmp_folder:
          tmp_folder = Path(tmp_folder)
          create_tmp_repo(tmp_folder)
          with patch_transformer_repo_path(tmp_folder):
              reverse_map = create_reverse_dependency_map()
  
          # impact of BERT modeling file (note that we stop at the inits and don't go down further)
          expected_bert_deps = {
              "src/transformers/__init__.py",
              "src/transformers/models/bert/__init__.py",
              "tests/models/bert/test_modeling_bert.py",
              "examples/flax/test_flax_examples.py",
              "examples/flax/text-classification/run_glue.py",
              "examples/pytorch/test_pytorch_examples.py",
              "examples/pytorch/text-classification/run_glue.py",
              "examples/tensorflow/test_tensorflow_examples.py",
              "examples/tensorflow/text-classification/run_glue.py",
          }
          assert (
              set(
                  reverse_map[
                      "src/transformers/models/bert/modeling_bert.py"
                  ]
              )
              == expected_bert_deps
          )
  
          # init gets the direct deps (and their recursive deps)
          expected_init_deps = {
              "src/transformers/utils/__init__.py",
              "src/transformers/utils/hub.py",
              "src/transformers/utils/imports.py",
              "src/transformers/models/bert/__init__.py",
              "src/transformers/models/bert/configuration_bert.py",
              "src/transformers/models/bert/modeling_bert.py",
              "src/transformers/configuration_utils.py",
              "src/transformers/modeling_utils.py",
              "tests/test_modeling_common.py",
              "tests/models/bert/test_modeling_bert.py",
              "examples/flax/test_flax_examples.py",
              "examples/flax/text-classification/run_glue.py",
              "examples/pytorch/test_pytorch_examples.py",
              "examples/pytorch/text-classification/run_glue.py",
              "examples/tensorflow/test_tensorflow_examples.py",
              "examples/tensorflow/text-classification/run_glue.py",
          }
          assert (
              set(reverse_map["src/transformers/__init__.py"])
              == expected_init_deps
          )
  
          expected_init_deps = {
              "src/transformers/__init__.py",
              "src/transformers/models/bert/configuration_bert.py",
              "src/transformers/models/bert/modeling_bert.py",
              "tests/models/bert/test_modeling_bert.py",
              "examples/flax/test_flax_examples.py",
              "examples/flax/text-classification/run_glue.py",
              "examples/pytorch/test_pytorch_examples.py",
              "examples/pytorch/text-classification/run_glue.py",
              "examples/tensorflow/test_tensorflow_examples.py",
              "examples/tensorflow/text-classification/run_glue.py",
          }
          assert (
              set(
                  reverse_map[
                      "src/transformers/models/bert/__init__.py"
                  ]
              )
              == expected_init_deps
          )
  
          # Test that with more models init of bert only gets deps to bert.
          create_tmp_repo(tmp_folder, models=["bert", "gpt2"])
          with patch_transformer_repo_path(tmp_folder):
              reverse_map = create_reverse_dependency_map()
  
          # init gets the direct deps (and their recursive deps)
          expected_init_deps = {
              "src/transformers/__init__.py",
              "src/transformers/models/bert/configuration_bert.py",
              "src/transformers/models/bert/modeling_bert.py",
              "tests/models/bert/test_modeling_bert.py",
              "examples/flax/test_flax_examples.py",
              "examples/flax/text-classification/run_glue.py",
              "examples/pytorch/test_pytorch_examples.py",
              "examples/pytorch/text-classification/run_glue.py",
              "examples/tensorflow/test_tensorflow_examples.py",
              "examples/tensorflow/text-classification/run_glue.py",
          }
          assert (
              set(
                  reverse_map[
                      "src/transformers/models/bert/__init__.py"
                  ]
              )
              == expected_init_deps
          )
  
imports: import os
  import shutil
  import sys
  import tempfile
  import unittest
  from contextlib import contextmanager
  from pathlib import Path
  from git import Repo
  from transformers.testing_utils import CaptureStdout
  import tests_fetcher
  from tests_fetcher import checkout_commit, clean_code, create_module_to_test_map, create_reverse_dependency_map, create_reverse_dependency_tree, diff_is_docstring_only, extract_imports, get_all_tests, get_diff, get_module_dependencies, get_tree_starting_at, infer_tests_to_run, init_test_examples_dependencies, parse_commit_message, print_tree_deps_of
label_desc: Use image node_id 14 for calling the TestFetcherTester obj's underlying member method code with example usage: obj.test_create_reverse_dependency_map() without return types