code: def __init__(
      self, frequent, total_step, batch_size, start_step=0, writer=None
  ):
      self.frequent: int = frequent
      self.rank: int = distributed.get_rank()
      self.world_size: int = distributed.get_world_size()
      self.time_start = time.time()
      self.total_step: int = total_step
      self.start_step: int = start_step
      self.batch_size: int = batch_size
      self.writer = writer
  
      self.init = False
      self.tic = 0
  
file_path: insightface/recognition/arcface_torch/utils/utils_callbacks.py
imports: import logging
  import os
  import time
  from typing import List
  import torch
  from eval import verification
  from utils.utils_logging import AverageMeter
  from torch.utils.tensorboard import SummaryWriter
  from torch import distributed
label_desc: Use image node_id 1 to create a new CallBackLogging object from inherited base classes: object with example: obj = CallBackLogging(frequent, total_step, batch_size, start_step, writer)