code: def per_sample_transform(self) -> Callable:
      return T.Compose(
          [
              permute_target,
              AlbumentationsAdapter(
                  [
                      alb.Resize(*self.image_size),
                      alb.Normalize(mean=self.mean, std=self.std),
                  ]
              ),
              ApplyToKeys(
                  DataKeys.INPUT,
                  T.ToTensor(),
              ),
          ]
      )
  
file_path: lightning-flash/src/flash/image/segmentation/input_transform.py
imports: from dataclasses import dataclass
  from typing import Any, Callable, Dict, Tuple
  from flash.core.data.io.input import DataKeys
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.transforms import AlbumentationsAdapter, ApplyToKeys
  from flash.core.utilities.imports import _ALBUMENTATIONS_AVAILABLE, _TORCHVISION_AVAILABLE, requires
label_desc: Use image node_id 2 for calling the SemanticSegmentationInputTransform obj's underlying member method code with example usage: obj.per_sample_transform() and returns: T