code: def to_chw(image):
      """
      Transpose image from HWC to CHW.
      Args:
          image (np.array): an image with HWC layout.
      """
      # HWC to CHW
      if len(image.shape) == 3:
          image = np.swapaxes(image, 1, 2)
          image = np.swapaxes(image, 1, 0)
      return image
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import cv2
  import numpy
  from collections import OrderedDict
  import paddle
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 6 for calling a global function with example usage: to_chw(image) and returns: image