code: def __init__(self, path, image_size=(112, 112)):
      self.path = path
      self.image_size = image_size
      self.widx = 0
      self.wlabel = 0
      self.max_label = -1
      assert not osp.exists(path), "%s exists" % path
      os.makedirs(path)
      self.writer = mx.recordio.MXIndexedRecordIO(
          os.path.join(path, "train.idx"),
          os.path.join(path, "train.rec"),
          "w",
      )
      self.meta = []
  
file_path: insightface/python-package/insightface/data/rec_builder.py
imports: import pickle
  import numpy
  import os
  import os.path
  import sys
  import mxnet
label_desc: Use image node_id 1 to create a new RecBuilder object  with example: obj = RecBuilder(path, image_size)