code: def check_model_list():
      """
      Checks the model listed as subfolders of `models` match the models available in `transformers.models`.
      """
      # Get the models from the directory structure of `src/transformers/models/`
      models_dir = os.path.join(PATH_TO_TRANSFORMERS, "models")
      _models = []
      for model in os.listdir(models_dir):
          if model == "deprecated":
              continue
          model_dir = os.path.join(models_dir, model)
          if os.path.isdir(model_dir) and "__init__.py" in os.listdir(
              model_dir
          ):
              _models.append(model)
  
      # Get the models in the submodule `transformers.models`
      models = [
          model
          for model in dir(transformers.models)
          if not model.startswith("__")
      ]
  
      missing_models = sorted(set(_models).difference(models))
      if missing_models:
          raise Exception(
              f"The following models should be included in {models_dir}/__init__.py: {','.join(missing_models)}."
          )
  
imports: import inspect
  import os
  import re
  import sys
  import types
  import warnings
  from collections import OrderedDict
  from difflib import get_close_matches
  from pathlib import Path
  from typing import List, Tuple
  from transformers import is_flax_available, is_tf_available, is_torch_available
  from transformers.models.auto import get_values
  from transformers.models.auto.configuration_auto import CONFIG_MAPPING_NAMES
  from transformers.models.auto.feature_extraction_auto import FEATURE_EXTRACTOR_MAPPING_NAMES
  from transformers.models.auto.image_processing_auto import IMAGE_PROCESSOR_MAPPING_NAMES
  from transformers.models.auto.processing_auto import PROCESSOR_MAPPING_NAMES
  from transformers.models.auto.tokenization_auto import TOKENIZER_MAPPING_NAMES
  from transformers.utils import ENV_VARS_TRUE_VALUES, direct_transformers_import
label_desc: Use image node_id 2 for calling a global function with example usage: check_model_list() without return types