code: def __match_interval_overlaps(
      query, intervals_to, candidates
  ):  # pragma: no cover
      """Find the best Jaccard match from query to candidates"""
      best_score = -1
      best_idx = -1
      for idx in candidates:
          score = __jaccard(query, intervals_to[idx])
  
          if score > best_score:
              best_score, best_idx = score, idx
      return best_idx
  
file_path: librosa/librosa/util/matching.py
imports: import numpy
  import numba
  from .exceptions import ParameterError
  from .utils import valid_intervals
  from .._typing import _SequenceLike
label_desc: Use image node_id 2 for calling a global function with example usage: __match_interval_overlaps(query, intervals_to, candidates) and returns: best_idx