code: def test_model_from_pretrained(self):
      # for model_name in TF_BERT_PRETRAINED_MODEL_ARCHIVE_LIST[:1]:
      for model_name in ["bert-base-uncased"]:
          config = AutoConfig.from_pretrained(model_name)
          self.assertIsNotNone(config)
          self.assertIsInstance(config, BertConfig)
  
          model = TFAutoModel.from_pretrained(model_name, from_pt=True)
          self.assertIsNotNone(model)
          self.assertIsInstance(model, TFBertModel)
  
          model = AutoModel.from_pretrained(model_name, from_tf=True)
          self.assertIsNotNone(model)
          self.assertIsInstance(model, BertModel)
  
file_path: transformers/tests/models/auto/test_modeling_tf_pytorch.py
imports: from __future__ import annotations
  import unittest
  from transformers import is_tf_available, is_torch_available
  from transformers.testing_utils import DUMMY_UNKNOWN_IDENTIFIER, SMALL_MODEL_IDENTIFIER, is_pt_tf_cross_test, slow
label_desc: Use image node_id 1 for calling the TFPTAutoModelTest obj's underlying member method code with example usage: obj.test_model_from_pretrained() without return types