code: def convert_to_csv(args):
      imageFile = open(args.imageFile, "rb")
      labelFile = open(args.labelFile, "rb")
      outputFile = open(args.outputFile, "w")
  
      imageFile.read(16)
      labelFile.read(8)
      images = []
  
      for i in range(args.num_records):
          image = [ord(labelFile.read(1))]
          for j in range(28 * 28):
              image.append(ord(imageFile.read(1)))
          images.append(image)
  
      for image in images:
          outputFile.write(",".join(str(pix) for pix in image) + "\n")
  
      imageFile.close()
      outputFile.close()
      labelFile.close()
  
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_csv(args) without return types