code: def __init__(self, filter_percentage=0.5, **kwargs):
      super().__init__(**kwargs)
      self.filter_percentage = filter_percentage
      self.add_to_recordable_attributes(
          list_of_names=["filter_percentage"], is_stat=False
      )
      self.reset_idx()
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/miners/hdc_miner.py
imports: import math
  import torch
  from ..utils import loss_and_miner_utils
  from .base_miner import BaseMiner
label_desc: Use image node_id 1 to create a new HDCMiner object from inherited base classes: BaseMiner with example: obj = HDCMiner(filter_percentage)