class_docstr: normalize image such as substract mean, divide std
      
class_docstr_tok: ["normalize","image","such","as","substract","mean",",","divide","std"]
code: def __call__(self, data):
      img = data["image"]
      from PIL import Image
  
      if isinstance(img, Image.Image):
          img = np.array(img)
      assert isinstance(
          img, np.ndarray
      ), "invalid input 'img' in NormalizeImage"
      data["image"] = (
          img.astype("float32") * self.scale - self.mean
      ) / self.std
      return data
  
imports: import numpy
  import paddle
  import os
  import cv2
  import glob
label_desc: Use image node_id 2 for calling the NormalizeImage obj's underlying member method code with example usage: obj.__call__(data) and returns: data