code: def _transform(img_h, img_w):
      return Compose(
          [
              ToPILImage(),
              RandomResizedCrop(
                  (img_h, img_w),
                  scale=(0.5, 1.0),
                  interpolation=BICUBIC,
              ),
              _convert_image_to_rgb,
              ToTensor(),
              Normalize(
                  (0.48145466, 0.4578275, 0.40821073),
                  (0.26862954, 0.26130258, 0.27577711),
              ),
          ]
      )
  
file_path: megatron-lm/megatron/data/multimodal_dataset.py
imports: from PIL import Image, UnidentifiedImageError
  import numpy
  import io
  import torch
  from torchvision.transforms import Compose, ToTensor, Normalize, ToPILImage, RandomResizedCrop, Resize
label_desc: Use image node_id 2 for calling a global function with example usage: _transform(img_h, img_w) and returns: Compose