code: def test_create_module_to_test_map(self):
      with tempfile.TemporaryDirectory() as tmp_folder:
          tmp_folder = Path(tmp_folder)
          models = models = ["bert", "gpt2"] + [
              f"bert{i}" for i in range(10)
          ]
          create_tmp_repo(tmp_folder, models=models)
          with patch_transformer_repo_path(tmp_folder):
              test_map = create_module_to_test_map(filter_models=True)
  
          expected_bert_tests = {
              "examples/flax/test_flax_examples.py",
              "examples/pytorch/test_pytorch_examples.py",
              "examples/tensorflow/test_tensorflow_examples.py",
              "tests/models/bert/test_modeling_bert.py",
          }
  
          for model in models:
              if model != "bert":
                  assert test_map[
                      f"src/transformers/models/{model}/modeling_{model}.py"
                  ] == [
                      f"tests/models/{model}/test_modeling_{model}.py"
                  ]
              else:
                  assert (
                      set(
                          test_map[
                              f"src/transformers/models/{model}/modeling_{model}.py"
                          ]
                      )
                      == expected_bert_tests
                  )
  
          # Init got filtered
          expected_init_tests = {
              "examples/flax/test_flax_examples.py",
              "examples/pytorch/test_pytorch_examples.py",
              "examples/tensorflow/test_tensorflow_examples.py",
              "tests/test_modeling_common.py",
              "tests/models/bert/test_modeling_bert.py",
              "tests/models/gpt2/test_modeling_gpt2.py",
          }
          assert (
              set(test_map["src/transformers/__init__.py"])
              == expected_init_tests
          )
  
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 15 for calling the TestFetcherTester obj's underlying member method code with example usage: obj.test_create_module_to_test_map() without return types