code: def _find_best_match(diff_matrix):
      """Find best best possible match by induction
  
      Parameters
      ----------
      diff_matrix : `np.ndarray`, shape=(n_basis, n_basis)
          Matrix containing differences for all pairs of values
  
      Returns
      -------
      matches : `list`, shape=(n_nodes,)
          List of all found matches
      """
      diff_matrix = diff_matrix.astype(float)
      matches = []
      n_basis = diff_matrix.shape[0]
      for _ in range(n_basis):
          row, col = np.unravel_index(
              np.argmin(diff_matrix), (n_basis, n_basis)
          )
          diff_matrix[row, :] = np.inf
          diff_matrix[:, col] = np.inf
          matches += [(row, col)]
      return matches
  
file_path: tick/tick/plot/plot_hawkes.py
imports: import matplotlib.pyplot
  import numpy
  from mpl_toolkits.axes_grid1 import make_axes_locatable
  from tick.plot.plot_utilities import share_x, share_y
label_desc: Use image node_id 5 for calling a global function with example usage: _find_best_match(diff_matrix) and returns: matches