code: def color_normalize(image, mean, std=None):
      if image.shape[-1] == 1:
          image = np.repeat(image, axis=2)
      h, w, c = image.shape
      image = np.transpose(image, (2, 0, 1))
      image = np.subtract(
          image.reshape(c, -1), mean[:, np.newaxis]
      ).reshape(-1, h, w)
      image = np.transpose(image, (1, 2, 0))
      return image
  
file_path: PaddleHub/modules/image/face_detection/pyramidbox_lite_server_mask/data_feed.py
imports: import math
  import os
  import time
  from collections import OrderedDict
  import cv2
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: color_normalize(image, mean, std) and returns: image