code: def __init__(self, path, image_size=(112, 112)):
      self.path = path
      self.image_size = image_size
      self.last_label = -1
      self.widx = 0
      if not os.path.exists(path):
          os.makedirs(path)
      self.writer = mx.recordio.MXIndexedRecordIO(
          os.path.join(path, "train.idx"),
          os.path.join(path, "train.rec"),
          "w",
      )
      self.label_stat = [-1, -1]
  
file_path: insightface/recognition/subcenter_arcface/common/rec_builder.py
imports: import os
  import sys
  import mxnet
  from mxnet import ndarray
  import random
  import argparse
  import cv2
  import time
  import sklearn
  import numpy
label_desc: Use image node_id 1 to create a new SeqRecBuilder object  with example: obj = SeqRecBuilder(path, image_size)