code: def __init__(self, num_sample, num_local, rank):
      self.num_sample = num_sample
      self.num_local = num_local
      self.rank = rank
      self.rank_class_start = self.rank * num_local
  
      self.positive = CenterPositiveClassGet(
          num_sample, num_local, rank
      )
      self.negative = CenterNegetiveClassSample(
          num_sample, num_local, rank
      )
  
file_path: insightface/recognition/partial_fc/mxnet/memory_samplers.py
imports: import numpy
label_desc: Use image node_id 1 to create a new WeightIndexSampler object from inherited base classes: object with example: obj = WeightIndexSampler(num_sample, num_local, rank)