      from plugins.train.model._base import ModelBase
      from .cache import _Cache
  
  logger = logging.getLogger(__name__)
  ConfigType = Dict[str, Union[bool, int, float, str]]  # TODO Dataclass
  BatchType = Tuple[np.ndarray, List[np.ndarray]]
  
  
  class DataGenerator():
      """ Parent class for Training and Preview Data Generators.
 
</s> remove     from .generator import ConfigType
 </s> add  </s> remove     from plugins.train.trainer._base import ConfigType
 </s> add     from lib.config import ConfigValueType
      from plugins.train.model._base import ModelBase
      from .cache import _Cache
  
  logger = logging.getLogger(__name__)

  BatchType = Tuple[np.ndarray, List[np.ndarray]]
  
  
  class DataGenerator():
      """ Parent class for Training and Preview Data Generators.
keep keep keep keep replace keep keep keep keep keep
 Preview - Allow mask color/opacity configuration
  - typing: lib.config
  - docs: lib.config
  - bugfix: popup_configure - keep assets on top 
lib/training/generator.py