code: def histogram(tag, hist, bin_edges, step, walltime):
      """Package data to one histogram.
  
      Args:
          tag (string): Data identifier
          hist (np.ndarray or list): The values of the histogram
          bin_edges (np.ndarray or list): The bin edges
          step (int): Step of histogram
          walltime (int): Wall time of histogram
  
      Return:
          Package with format of record_pb2.Record
      """
      histogram = Record.Histogram(hist=hist, bin_edges=bin_edges)
      return Record(
          values=[
              Record.Value(
                  id=step,
                  tag=tag,
                  timestamp=walltime,
                  histogram=histogram,
              )
          ]
      )
  
imports: import numpy
  from PIL import Image
  from visualdl.proto.record_pb2 import Record
label_desc: Use image node_id 12 for calling a global function with example usage: histogram(tag, hist, bin_edges, step, walltime) and returns: Record