code: def create_and_test_config_common_properties(self):
      config = self.config_class(**self.inputs_dict)
      common_properties = [
          "hidden_size",
          "num_attention_heads",
          "num_hidden_layers",
      ]
  
      # Add common fields for text models
      if self.has_text_modality:
          common_properties.extend(["vocab_size"])
  
      # Test that config has the common properties as getters
      for prop in common_properties:
          self.parent.assertTrue(
              hasattr(config, prop), msg=f"`{prop}` does not exist"
          )
  
      # Test that config has the common properties as setter
      for idx, name in enumerate(common_properties):
          try:
              setattr(config, name, idx)
              self.parent.assertEqual(
                  getattr(config, name),
                  idx,
                  msg=f"`{name} value {idx} expected, but was {getattr(config, name)}",
              )
          except NotImplementedError:
              # Some models might not be able to implement setters for common_properties
              # In that case, a NotImplementedError is raised
              pass
  
      # Test if config class can be called with Config(prop_name=..)
      for idx, name in enumerate(common_properties):
          try:
              config = self.config_class(**{name: idx})
              self.parent.assertEqual(
                  getattr(config, name),
                  idx,
                  msg=f"`{name} value {idx} expected, but was {getattr(config, name)}",
              )
          except NotImplementedError:
              # Some models might not be able to implement setters for common_properties
              # In that case, a NotImplementedError is raised
              pass
  
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 2 for calling the ConfigTester obj's underlying member method code with example usage: obj.create_and_test_config_common_properties() without return types