code: def _img_transform(self, image):
      image = np.asarray(image, np.float32)
      image = image[:, :, ::-1]  # change to BGR
      image -= IMG_MEAN
      image = image.transpose((2, 0, 1)).copy()  # (C x H x W)
  
      new_image = paddle.to_tensor(image)
  
      return new_image
  
file_path: PaddleSeg/contrib/DomainAdaptation/datasets/cityscapes_noconfig.py
imports: import os
  import random
  import numpy
  import collections.abc
  from PIL import Image, ImageOps, ImageFilter, ImageFile
  import paddle
  from paddle import io
  import paddleseg.transforms.functional
label_desc: Use image node_id 6 for calling the CityDataset obj's underlying member method code with example usage: obj._img_transform(image) and returns: new_image