code: def create_and_test_config_from_and_save_pretrained(self):
      config_first = self.config_class(**self.inputs_dict)
  
      with tempfile.TemporaryDirectory() as tmpdirname:
          config_first.save_pretrained(tmpdirname)
          config_second = self.config_class.from_pretrained(tmpdirname)
  
      self.parent.assertEqual(
          config_second.to_dict(), config_first.to_dict()
      )
  
      with self.parent.assertRaises(OSError):
          self.config_class.from_pretrained(f".{tmpdirname}")
  
file_path: transformers/tests/test_configuration_common.py
imports: import copy
  import json
  import os
  import tempfile
  from transformers import is_torch_available
  from .test_configuration_utils import config_common_kwargs
label_desc: Use image node_id 5 for calling the ConfigTester obj's underlying member method code with example usage: obj.create_and_test_config_from_and_save_pretrained() without return types