code: def __init__(self, **kwargs):
      version = kwargs["version"]
      if version < 22:
          assert "export" not in kwargs, (
              'Config versions before 22 should not contain an "export" section. Got '
              f"version={version}."
          )
          kwargs["export"] = ExportConfig(
              **{
                  k: kwargs.pop(k)
                  for k in ExportConfig.__annotations__.keys()
                  if k in kwargs.keys()
              }
          )
          kwargs["export_list"] = [kwargs["export"]]
          kwargs["version"] = 22
      super().__init__(**kwargs)
      if len(self.export_list) == 0:  # Happens if version >= 22:
          self.export_list = [self.export]
  
imports: from collections import OrderedDict
  from typing import Any, List, Optional, Union
label_desc: Use image node_id 1 to create a new PyTextConfig object from inherited base classes: ConfigBase with example: obj = PyTextConfig()