code: def get_all_tests():
      """
      Return a list of paths to all test folders and files under `tests`. All paths are rooted at `tests`.
  
      - folders under `tests`: `tokenization`, `pipelines`, etc. The folder `models` is excluded.
      - folders under `tests/models`: `bert`, `gpt2`, etc.
      - test files under `tests`: `test_modeling_common.py`, `test_tokenization_common.py`, etc.
      """
      test_root_dir = os.path.join(PATH_TO_TRANFORMERS, "tests")
  
      # test folders/files directly under `tests` folder
      tests = os.listdir(test_root_dir)
      tests = sorted(
          list(
              filter(
                  lambda x: os.path.isdir(x)
                  or x.startswith("tests/test_"),
                  [f"tests/{x}" for x in tests],
              )
          )
      )
  
      # model specific test folders
      model_tests_folders = os.listdir(
          os.path.join(test_root_dir, "models")
      )
      model_test_folders = sorted(
          list(
              filter(
                  os.path.isdir,
                  [f"tests/models/{x}" for x in model_tests_folders],
              )
          )
      )
  
      tests.remove("tests/models")
      tests = model_test_folders + tests
  
      return tests
  
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 3 for calling a global function with example usage: get_all_tests() and returns: tests