code: def convert(imgf, labelf, outf, n):
      f = open(imgf, "rb")
      temp = open(labelf, "rb")
      o = open(outf, "w")
  
      f.read(16)
      temp.read(8)
      images = []
  
      for i in range(n):
          image = [ord(temp.read(1))]
          for j in range(28 * 28):
              image.append(ord(f.read(1)))
          images.append(image)
  
      for image in images:
          o.write(",".join(str(pix) for pix in image) + "\n")
      f.close()
      o.close()
      temp.close()
  
label_desc: Use image node_id 1 for calling a global function with example usage: convert(imgf, labelf, outf, n) without return types