code: def test_model_from_pretrained(self):
      model_name = "bert-base-cased"
      config = AutoConfig.from_pretrained(model_name)
      self.assertIsNotNone(config)
      self.assertIsInstance(config, BertConfig)
  
      model = TFAutoModel.from_pretrained(model_name)
      self.assertIsNotNone(model)
      self.assertIsInstance(model, TFBertModel)
  
imports: import copy
  import tempfile
  import unittest
  from transformers import CONFIG_MAPPING, AutoConfig, BertConfig, GPT2Config, T5Config, TapasConfig, is_tf_available
  from transformers.testing_utils import DUMMY_UNKNOWN_IDENTIFIER, SMALL_MODEL_IDENTIFIER, RequestCounter, require_tensorflow_probability, require_tf, slow
  from ..bert.test_modeling_bert import BertModelTester
label_desc: Use image node_id 1 for calling the TFAutoModelTest obj's underlying member method code with example usage: obj.test_model_from_pretrained() without return types