code: def test_from_pretrained_no_load_weights_local_config(self):
      config = AutoConfig.from_pretrained(
          "epwalsh/bert-xsmall-dummy", cache_dir=self.TEST_DIR
      )
      self.clear_test_dir()
  
      # Save config to file.
      local_config_path = str(self.TEST_DIR / "local_config.json")
      config.to_json_file(local_config_path, use_diff=False)
  
      # Now load the model from the local config.
      _ = cached_transformers.get(
          local_config_path,
          False,
          load_weights=False,
          cache_dir=self.TEST_DIR,
      )
      # Make sure no other files were downloaded.
      assert os.listdir(str(self.TEST_DIR)) == ["local_config.json"]
  
imports: import json
  import os
  import pytest
  import torch
  from allennlp.common import cached_transformers
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase
  from transformers import AutoConfig, AutoModel
label_desc: Use image node_id 10 for calling the TestCachedTransformers obj's underlying member method code with example usage: obj.test_from_pretrained_no_load_weights_local_config() without return types