class_docstr: This class is used to encapsulate the following functions of an `InputTransform` Object:
  Inside a worker:
      per_sample_transform: Function to transform an individual sample
      collate: Function to merge sample into a batch
      per_batch_transform: Function to transform an individual batch
  
  Inside main process:
      per_sample_transform_on_device: Function to transform an individual sample
      collate: Function to merge sample into a batch
      per_batch_transform_on_device: Function to transform an individual batch
class_docstr_tok: ["This","class","is","used","to","encapsulate","the","following","functions","of","an","`","InputTransform","`","Object",":","Inside","a","worker",":","per_sample_transform",":","Function","to","transform","an","individual","sample","collate",":","Function","to","merge","sample","into","a","batch","per_batch_transform",":","Function","to","transform","an","individual","batch","Inside","main","process",":","per_sample_transform_on_device",":","Function","to","transform","an","individual","sample","collate",":","Function","to","merge","sample","into","a","batch","per_batch_transform_on_device",":","Function","to","transform","an","individual","batch"]
code: def __str__(self) -> str:
      # todo: define repr function which would take object and string attributes to be shown
      return (
          "_InputTransformProcessor:\n"
          f"\t(per_sample_transform): {str(self.per_sample_transform)}\n"
          f"\t(collate_fn): {str(self.collate_fn)}\n"
          f"\t(per_batch_transform): {str(self.per_batch_transform)}\n"
          f"\t(apply_per_sample_transform): {str(self.apply_per_sample_transform)}\n"
          f"\t(on_device): {str(self.on_device)}\n"
          f"\t(stage): {str(self.stage)}"
      )
  
imports: import inspect
  from dataclasses import dataclass
  from functools import partial
  from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple
  from pytorch_lightning.utilities import rank_zero_warn
  from pytorch_lightning.utilities.enums import LightningEnum
  from flash.core.data.callback import ControlFlow
  from flash.core.data.utilities.collate import default_collate
  from flash.core.data.utils import _STAGES_PREFIX
  from flash.core.utilities.stages import RunningStage
  from flash.core.utilities.types import INPUT_TRANSFORM_TYPE
label_desc: Use image node_id 3 for calling the _InputTransformProcessor obj's underlying member method code with example usage: obj.__str__() and returns: str, str, str, str, str, str, str, str, str, str, str, str