code: def get_matching_pairs(
      self, query_emb, ref_emb=None, threshold=None, return_tuples=False
  ):
      with torch.no_grad():
          threshold = (
              threshold if threshold is not None else self.threshold
          )
          return self.operate_on_emb(
              self._get_matching_pairs,
              query_emb,
              ref_emb,
              threshold,
              return_tuples,
          )
  
imports: import numpy
  import torch
  from ..distances import BatchedDistance, CosineSimilarity
  from .None import common_functions
label_desc: Use image node_id 3 for calling the MatchFinder obj's underlying member method code with example usage: obj.get_matching_pairs(query_emb, ref_emb, threshold, return_tuples) and returns: self