code: def prepare_for_mode(self, mode: PipelineMode) -> NoReturn:
      pass
  
imports: import logging
  import os
  from abc import abstractmethod, ABC
  from copy import deepcopy
  from dataclasses import dataclass, field
  from random import shuffle
  from typing import Generator, Iterable, Optional, List, NoReturn, TypeVar
  import numpy
  from dataclasses_json import dataclass_json
  from paiargparse import pai_dataclass, pai_meta
  from tfaip import DataGeneratorParams
  from tfaip.data.pipeline.datagenerator import DataGenerator
  from tfaip.data.pipeline.definitions import PipelineMode, Sample
  from calamari_ocr.utils.image import ImageLoaderParams, ImageLoader
label_desc: Use image node_id 4 for calling the CalamariDataGeneratorParams obj's underlying member method code with example usage: obj.prepare_for_mode(mode) without return types