code: def transform():
      transform = transforms.Compose(
          [
              transforms.RandomResizedCrop(224),
              transforms.RandomHorizontalFlip(),
              transforms.ToTensor(),
              transforms.Normalize(
                  mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
              ),
          ]
      )
      return transform
  
file_path: SynapseML/deep-learning/src/test/python/synapsemltest/dl/conftest.py
imports: import os
  import shutil
  import subprocess
  import urllib
  from os.path import join
  import numpy
  import pandas
  import pytest
  import torchvision.transforms
  from pyspark.ml.feature import StringIndexer
label_desc: Use image node_id 3 for calling a global function with example usage: transform() and returns: transform