code: def convert_to_pos_pairs_with_unique_labels(indices_tuple, labels):
      a, p, _, _ = convert_to_pairs(indices_tuple, labels)
      _, unique_idx = np.unique(
          labels[a].cpu().numpy(), return_index=True
      )
      return a[unique_idx], p[unique_idx]
  
imports: import math
  import numpy
  import torch
  from .None import common_functions
label_desc: Use image node_id 6 for calling a global function with example usage: convert_to_pos_pairs_with_unique_labels(indices_tuple, labels) and returns: a,  p