code: def helper(self, a, p, n):
      self.assertTrue(torch.equal(a, self.correct_a))
      self.assertTrue(torch.equal(p, self.correct_p))
      self.assertTrue(any(torch.equal(n, cn) for cn in self.correct_n))
  
file_path: pytorch-metric-learning/tests/miners/test_batch_hard_miner.py
imports: import unittest
  import numpy
  import torch
  from pytorch_metric_learning.distances import CosineSimilarity, LpDistance
  from pytorch_metric_learning.miners import BatchHardMiner
  from ..None import TEST_DEVICE, TEST_DTYPES, WITH_COLLECT_STATS
  from ..zzz_testing_utils.testing_utils import angle_to_coord
label_desc: Use image node_id 7 for calling the TestBatchHardMiner obj's underlying member method code with example usage: obj.helper(a, p, n) without return types