code: def test_component_subconfig_serialize(self):
      config_json = json.loads(
          """{
              "foo": 5,
              "models": [{
                  "bar": 12,
                  "m2s1s1": "thing"
              }, {
                  "m2s1s1": "thing2"
              }]
          }"""
      )
      config = config_from_json(JointModel.Config, config_json)
      serialized = config_to_json(JointModel.Config, config)
      again = config_from_json(JointModel.Config, serialized)
      self.assertEqual(again.foo, 5)
      self.assertEqual(again.models[0].m2s1s1, "thing")
      self.assertEqual(again.models[1].bar, 3)
  
imports: import json
  import unittest
  from typing import List, Tuple, Union
  from pytext.config.component import Component, ComponentType
  from pytext.config.pytext_config import ConfigBase
  from pytext.config.serialize import config_from_json, config_to_json, ConfigParseError, MissingValueError, UnionTypeError
label_desc: Use image node_id 6 for calling the PytextConfigTest obj's underlying member method code with example usage: obj.test_component_subconfig_serialize() without return types