class_docstr: Here we also overwrite some of the tests of test_modeling_tf_common.py, as DeiT does not use input_ids, inputs_embeds,
  attention_mask and seq_length.
code: def test_model_common_attributes(self):
      (
          config,
          _,
      ) = self.model_tester.prepare_config_and_inputs_for_common()
  
      for model_class in self.all_model_classes:
          model = model_class(config)
          self.assertIsInstance(
              model.get_input_embeddings(), (tf.keras.layers.Layer)
          )
          x = model.get_output_embeddings()
          self.assertTrue(
              x is None or isinstance(x, tf.keras.layers.Dense)
          )
  
imports: from __future__ import annotations
  import inspect
  import unittest
  import numpy
  from transformers import DeiTConfig
  from transformers.testing_utils import require_tf, require_vision, slow
  from transformers.utils import cached_property, is_tf_available, is_vision_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, floats_tensor, ids_tensor
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 4 for calling the TFDeiTModelTest obj's underlying member method code with example usage: obj.test_model_common_attributes() without return types