code: def _get_unique_ordered_tuples(
      unique_tuples: List[Tuple],
  ) -> List[Tuple]:
      """Sort each tuple given a list of tuples and retain only unique pairs regardless of order within the tuple.
      Eg: [(2, 1), (1, 2), (3, 4)]  becomes [(1, 2), (3, 4)]"""
  
      return list(set([tuple(sorted(i)) for i in unique_tuples]))
  
file_path: imagededup/imagededup/handlers/metrics/classification.py
imports: import itertools
  from typing import Dict, List, Tuple
  import numpy
  from sklearn.metrics import classification_report, precision_score, recall_score, precision_recall_fscore_support
  from imagededup.utils.logger import return_logger
label_desc: Use image node_id 1 for calling a global function with example usage: _get_unique_ordered_tuples(unique_tuples) and returns: list