code: def __init__(
      self,
      rank,
      world_size,
      embedding_size,
      num_classes,
      model_save_dir="./",
      checkpoint_dir=None,
      max_num_last_checkpoint=3,
  ):
      self.rank: int = rank
      self.world_size: int = world_size
      self.embedding_size: int = embedding_size
      self.num_classes: int = num_classes
      self.model_save_dir: str = model_save_dir
      self.checkpoint_dir: str = checkpoint_dir
      self.max_num_last_checkpoint: int = max_num_last_checkpoint
  
file_path: insightface/recognition/arcface_paddle/dynamic/utils/io.py
imports: import errno
  import os
  import paddle
  import logging
  import numpy
  import shutil
  import json
  from utils.rearrange_weight import rearrange_weight
label_desc: Use image node_id 1 to create a new Checkpoint object from inherited base classes: object with example: obj = Checkpoint(rank, world_size, embedding_size, num_classes, model_save_dir, checkpoint_dir, max_num_last_checkpoint)