code: def load_sample(self, sample: Dict[str, Any]) -> Dict[str, Any]:
      img = to_pil_image(sample[DataKeys.INPUT])
      sample[DataKeys.INPUT] = img
      return super().load_sample(sample)
  
imports: import base64
  from io import BytesIO
  from pathlib import Path
  from typing import Any, Dict, List
  import torch
  import flash
  from flash.core.data.io.input import DataKeys, Input, ServeInput
  from flash.core.data.utilities.loading import IMG_EXTENSIONS, NP_EXTENSIONS, load_image
  from flash.core.data.utilities.paths import PATH_TYPE, filter_valid_files
  from flash.core.data.utilities.samples import to_samples
  from flash.core.utilities.imports import _TORCHVISION_AVAILABLE, Image, requires
label_desc: Use image node_id 2 for calling the ImageTensorInput obj's underlying member method code with example usage: obj.load_sample(sample) and returns: super