code: def pytext_config_from_json(
      json_obj, ignore_fields=(), auto_upgrade=True
  ):
      if auto_upgrade:
          json_obj = upgrade_to_latest(json_obj)
      pytext_config = config_from_json(
          PyTextConfig, json_obj, ignore_fields
      )
      if pytext_config.export:
          pytext_config.export_list = [pytext_config.export]
      return pytext_config
  
imports: from enum import Enum
  from typing import Any, Dict, List, Tuple, Type, Union
  from pytext.common.utils import eprint
  from .component import Registry
  from .config_adapter import upgrade_to_latest
  from .pytext_config import PyTextConfig
label_desc: Use image node_id 12 for calling a global function with example usage: pytext_config_from_json(json_obj, ignore_fields, auto_upgrade) and returns: pytext_config