code: def __init__(
      self,
      transform: Union[BasicTransform, Sequence[BasicTransform]],
      mapping: dict = None,
  ):
      super().__init__()
      if not isinstance(transform, (list, tuple)):
          transform = [transform]
      self.transform = Compose(list(transform))
      if not mapping:
          mapping = self.TRANSFORM_INPUT_MAPPING
      self._mapping_rev = mapping
      self._mapping = {v: k for k, v in mapping.items()}
  
file_path: lightning-flash/src/flash/core/data/transforms.py
imports: from typing import Any, Mapping, Sequence, Union
  import numpy
  from torch import nn
  from flash.core.data.io.input import DataKeys
  from flash.core.data.utils import convert_to_modules
  from flash.core.utilities.imports import _ALBUMENTATIONS_AVAILABLE, requires
label_desc: Use image node_id 1 to create a new AlbumentationsAdapter object from inherited base classes: nn with example: obj = AlbumentationsAdapter(transform, mapping)