code: def test_correct_missing_keys(self):
      if not self.test_missing_keys:
          return
      (
          config,
          _,
      ) = self.model_tester.prepare_config_and_inputs_for_common()
  
      for model_class in self.all_model_classes:
          # most Perceiver models don't have a typical head like is the case with BERT
          if model_class in [
              PerceiverForOpticalFlow,
              PerceiverForMultimodalAutoencoding,
              *get_values(MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING),
              *get_values(MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING),
          ]:
              continue
  
          model = model_class(config)
          base_model_prefix = model.base_model_prefix
  
          if hasattr(model, base_model_prefix):
              with tempfile.TemporaryDirectory() as temp_dir_name:
                  model.base_model.save_pretrained(temp_dir_name)
                  model, loading_info = model_class.from_pretrained(
                      temp_dir_name, output_loading_info=True
                  )
                  with self.subTest(
                      msg=f"Missing keys for {model.__class__.__name__}"
                  ):
                      self.assertGreater(
                          len(loading_info["missing_keys"]), 0
                      )
  
imports: import copy
  import inspect
  import math
  import tempfile
  import unittest
  import warnings
  from typing import Dict, List, Tuple
  import numpy
  from datasets import load_dataset
  from transformers import PerceiverConfig
  from transformers.models.auto import get_values
  from transformers.testing_utils import require_torch, require_torch_multi_gpu, require_vision, slow, torch_device
  from transformers.utils import is_torch_available, is_vision_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, floats_tensor, ids_tensor, random_attention_mask
label_desc: Use image node_id 19 for calling the PerceiverModelTest obj's underlying member method code with example usage: obj.test_correct_missing_keys() without return types