code: def test_component_subconfig_deserialize(self):
      config_json = json.loads(
          """{
              "foo": 5,
              "models": [{
                  "bar": 12,
                  "m2s1s1": "thing"
              }, {
                  "m2s1s1": "thing2"
              }]
          }"""
      )
      config = config_from_json(JointModel.Config, config_json)
      self.assertEqual(config.foo, 5)
      self.assertEqual(len(config.models), 2)
      self.assertEqual(config.models[1].m2s1s1, "thing2")
  
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 7 for calling the PytextConfigTest obj's underlying member method code with example usage: obj.test_component_subconfig_deserialize() without return types