code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
      self.add_to_recordable_attributes(
          list_of_names=[
              "num_pos_pairs",
              "num_neg_pairs",
              "num_triplets",
          ],
          is_stat=True,
      )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/miners/base_miner.py
imports: import torch
  from ..utils import common_functions
  from ..utils.module_with_records_and_reducer import ModuleWithRecordsAndDistance
label_desc: Use image node_id 1 to create a new BaseMiner object from inherited base classes: ModuleWithRecordsAndDistance with example: obj = BaseMiner()