code: def read_label_file(path):
      with gzip.open(path, "rb") as f:
          data = f.read()
          assert get_int(data[:4]) == 2049
          length = get_int(data[4:8])
          parsed = np.frombuffer(
              data, dtype=np.uint8, offset=8
          ).reshape((length))
          return parsed
  
file_path: singa/examples/cnn/data/mnist.py
imports: import numpy
  import os
  import sys
  import gzip
  import codecs
label_desc: Use image node_id 3 for calling a global function with example usage: read_label_file(path) and returns: parsed