code: def image(tag, image_array, step, walltime=None, dataformats="HWC"):
      """Package data to one image.
  
      Args:
          tag (string): Data identifier
          image_array (np.ndarray): Value of image
          step (int): Step of image
          walltime (int): Wall time of image
          dataformats (string): Format of image
  
      Return:
          Package with format of record_pb2.Record
      """
      image_array = denormalization(image_array)
      image_array = convert_to_HWC(image_array, dataformats)
      image_bytes = imgarray2bytes(image_array)
      image = Record.Image(encoded_image_string=image_bytes)
      return Record(
          values=[
              Record.Value(
                  id=step, tag=tag, timestamp=walltime, image=image
              )
          ]
      )
  
imports: import numpy
  from PIL import Image
  from visualdl.proto.record_pb2 import Record
label_desc: Use image node_id 8 for calling a global function with example usage: image(tag, image_array, step, walltime, dataformats) and returns: Record