code: def test_component(self):
      config_json = json.loads(
          """{
              "bar": 13,
              "m2s1s1": "sub_foo"
          }"""
      )
      config = config_from_json(RegisteredModel.Config, config_json)
      self.assertEqual(config.bar, 13)
      self.assertEqual(config.m2s1s1, "sub_foo")
      self.assertEqual(config.m2s1, 5)
  
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 5 for calling the PytextConfigTest obj's underlying member method code with example usage: obj.test_component() without return types