code: def close(self):
      id_idx = self.widx
      for id_flag in self.identities:
          idx = self.widx
          self.widx += 1
          _header = mx.recordio.IRHeader(0, id_flag, idx, 0)
          s = mx.recordio.pack(_header, b"")
          self.writer.write_idx(idx, s)
  
      print("id0:", (id_idx, self.widx))
      idx = 0
      _header = mx.recordio.IRHeader(0, (id_idx, self.widx), idx, 1)
      s = mx.recordio.pack(_header, b"")
      self.writer.write_idx(idx, s)
      print("label stat:", self.label_stat)
  
      with open(os.path.join(self.path, "property"), "w") as f:
          f.write(
              "%d,%d,%d\n"
              % (
                  self.label_stat[1] + 1,
                  self.image_size[0],
                  self.image_size[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 3 for calling the RecBuilder obj's underlying member method code with example usage: obj.close() without return types