code: def test_use_non_sub_component_in_config(self):
      config_json = json.loads(
          """
              {
                  "model": {"ModelFoo": {}}
              }
          """
      )
      self.assertRaises(
          ConfigParseError,
          config_from_json,
          IncorrectTestConfig,
          config_json,
      )
  
imports: import json
  import unittest
  from typing import Union
  from pytext.config.component import Component, ComponentType, ConfigBase
  from pytext.config.serialize import config_from_json, config_to_json, ConfigParseError
label_desc: Use image node_id 2 for calling the ComponentTest obj's underlying member method code with example usage: obj.test_use_non_sub_component_in_config() without return types