code: def test_from_pretrained_dynamic_config_conflict(self):
      class NewModelConfigLocal(BertConfig):
          model_type = "new-model"
  
      try:
          AutoConfig.register("new-model", NewModelConfigLocal)
          # If remote code is not set, the default is to use local
          config = AutoConfig.from_pretrained(
              "hf-internal-testing/test_dynamic_model"
          )
          self.assertEqual(
              config.__class__.__name__, "NewModelConfigLocal"
          )
  
          # If remote code is disabled, we load the local one.
          config = AutoConfig.from_pretrained(
              "hf-internal-testing/test_dynamic_model",
              trust_remote_code=False,
          )
          self.assertEqual(
              config.__class__.__name__, "NewModelConfigLocal"
          )
  
          # If remote is enabled, we load from the Hub
          config = AutoConfig.from_pretrained(
              "hf-internal-testing/test_dynamic_model",
              trust_remote_code=True,
          )
          self.assertEqual(config.__class__.__name__, "NewModelConfig")
  
      finally:
          if "new-model" in CONFIG_MAPPING._extra_content:
              del CONFIG_MAPPING._extra_content["new-model"]
  
imports: import importlib
  import json
  import os
  import sys
  import tempfile
  import unittest
  from pathlib import Path
  import transformers
  import transformers.models.auto
  from transformers.models.auto.configuration_auto import CONFIG_MAPPING, AutoConfig
  from transformers.models.bert.configuration_bert import BertConfig
  from transformers.models.roberta.configuration_roberta import RobertaConfig
  from transformers.testing_utils import DUMMY_UNKNOWN_IDENTIFIER, get_tests_dir
  from test_module.custom_configuration import CustomConfig
label_desc: Use image node_id 13 for calling the AutoConfigTest obj's underlying member method code with example usage: obj.test_from_pretrained_dynamic_config_conflict() without return types