code: def test_local_versioning(self):
      configuration = AutoConfig.from_pretrained("bert-base-cased")
      configuration.configuration_files = ["config.4.0.0.json"]
  
      with tempfile.TemporaryDirectory() as tmp_dir:
          configuration.save_pretrained(tmp_dir)
          configuration.hidden_size = 2
          json.dump(
              configuration.to_dict(),
              open(os.path.join(tmp_dir, "config.4.0.0.json"), "w"),
          )
  
          # This should pick the new configuration file as the version of Transformers is > 4.0.0
          new_configuration = AutoConfig.from_pretrained(tmp_dir)
          self.assertEqual(new_configuration.hidden_size, 2)
  
          # Will need to be adjusted if we reach v42 and this test is still here.
          # Should pick the old configuration file as the version of Transformers is < 4.42.0
          configuration.configuration_files = ["config.42.0.0.json"]
          configuration.hidden_size = 768
          configuration.save_pretrained(tmp_dir)
          shutil.move(
              os.path.join(tmp_dir, "config.4.0.0.json"),
              os.path.join(tmp_dir, "config.42.0.0.json"),
          )
          new_configuration = AutoConfig.from_pretrained(tmp_dir)
          self.assertEqual(new_configuration.hidden_size, 768)
  
imports: import copy
  import json
  import os
  import shutil
  import sys
  import tempfile
  import unittest
  import unittest.mock
  from pathlib import Path
  from huggingface_hub import HfFolder, delete_repo, set_access_token
  from requests.exceptions import HTTPError
  from transformers import AutoConfig, BertConfig, GPT2Config, is_torch_available
  from transformers.configuration_utils import PretrainedConfig
  from transformers.testing_utils import TOKEN, USER, is_staging_test
  from test_module.custom_configuration import CustomConfig
label_desc: Use image node_id 1 for calling the ConfigurationVersioningTest obj's underlying member method code with example usage: obj.test_local_versioning() without return types