code: def face_img_process(
      image,
      mean=[104.0, 117.0, 123.0],
      std=[127.502231, 127.502231, 127.502231],
  ):
      img = np.array(image)
      img = to_chw(img)
      img = img.astype("float32")
      img -= np.array(mean)[:, np.newaxis, np.newaxis].astype("float32")
      img /= np.array(std)[:, np.newaxis, np.newaxis].astype("float32")
      img = [img]
      img = np.array(img)
      return img
  
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 7 for calling a global function with example usage: face_img_process(image, mean, std) and returns: img