code: def _get_typed_sample(input, target, id, sample_type):
      if sample_type == SampleType.DICT:
          return {"input": input, "target": target, "id": id}
      elif sample_type == SampleType.TUPLE:
          return (input, target)
      elif sample_type == SampleType.LIST:
          return [input, target]
      else:
          raise TypeError(
              "Provided sample_type is not dict, list, tuple"
          )
  
file_path: ClassyVision/classy_vision/dataset/core/random_image_datasets.py
imports: from enum import Enum
  import numpy
  from PIL import Image
  from ...generic.util import numpy_seed
label_desc: Use image node_id 1 for calling a global function with example usage: _get_typed_sample(input, target, id, sample_type) and returns: dict, input,  target, list