code: def __init__(self, transform):
      super().__init__()
      if not isinstance(transform, list):
          transform = [transform]
      self.transform = albumentations.Compose(transform)
  
file_path: lightning-flash/src/flash/image/classification/input_transform.py
imports: from dataclasses import dataclass
  from typing import Tuple, Union
  import torch
  from torch import nn
  from flash.core.data.io.input import DataKeys
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.transforms import ApplyToKeys
  from flash.core.utilities.imports import _ALBUMENTATIONS_AVAILABLE, _TORCHVISION_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)