code: def test_incorrect_union(self):
      config_json = json.loads(
          """
              {
                  "task": {
                      "task1": {
                          "model": {
                              "model3": {
  
                              }
                          }
                      }
                  },
                  "output": "test"
              }
              """
      )
      self.assertRaises(
          UnionTypeError, config_from_json, PyTextConfig, config_json
      )
  
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 10 for calling the PytextConfigTest obj's underlying member method code with example usage: obj.test_incorrect_union() without return types