code: def set_idx_externally(self, external_indices_tuple, labels):
      self.a1, self.p, self.a2, self.n = lmu.convert_to_pairs(
          external_indices_tuple, labels
      )
      self.was_set_externally = True
  
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 5 for calling the HDCMiner obj's underlying member method code with example usage: obj.set_idx_externally(external_indices_tuple, labels) without return types