code: def check_all_objects_are_documented():
      """Check all models are properly documented."""
      documented_objs = find_all_documented_objects()
      modules = transformers._modules
      objects = [
          c
          for c in dir(transformers)
          if c not in modules and not c.startswith("_")
      ]
      undocumented_objs = [
          c
          for c in objects
          if c not in documented_objs and not ignore_undocumented(c)
      ]
      if len(undocumented_objs) > 0:
          raise Exception(
              "The following objects are in the public init so should be documented:\n - "
              + "\n - ".join(undocumented_objs)
          )
      check_docstrings_are_in_md()
      check_model_type_doc_match()
  
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 25 for calling a global function with example usage: check_all_objects_are_documented() without return types