class_docstr: convert hwc image to chw image
      
class_docstr_tok: ["convert","hwc","image","to","chw","image"]
code: def __call__(self, data):
      img = data["image"]
      from PIL import Image
  
      if isinstance(img, Image.Image):
          img = np.array(img)
      data["image"] = img.transpose((2, 0, 1))
  
      src_img = data["src_image"]
      from PIL import Image
  
      if isinstance(img, Image.Image):
          src_img = np.array(src_img)
      data["src_image"] = img.transpose((2, 0, 1))
  
      return data
  
imports: import numpy
  import paddle
  import os
  import cv2
  import glob
label_desc: Use image node_id 2 for calling the ToCHWImage obj's underlying member method code with example usage: obj.__call__(data) and returns: data