code: def denormalization(image_array):
      """Renormalise ndarray matrix.
  
      Args:
          image_array(np.ndarray): Value of image
  
      Return:
          Matrix after renormalising.
      """
      if image_array.max() <= 1 and image_array.min() >= 0:
          image_array *= 255
      return image_array.astype(np.uint8)
  
imports: import numpy
  from PIL import Image
  from visualdl.proto.record_pb2 import Record
label_desc: Use image node_id 7 for calling a global function with example usage: denormalization(image_array) and returns: image_array