code: def _get_ij_dist(
      distances: npt.NDArray[np.float32],
  ) -> Tuple[int, int, float]:
      min_distances = distances.min(1)
      min_distance_indices = distances.argmin(1)
      i = min_distances.argmax()
      j = min_distance_indices[i]
      return i, j, min_distances.max()
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/analysis/utils/mo_metrics.py
imports: from typing import Tuple
  import numpy
  import numpy.typing
  import pygmo
  import scipy.spatial
label_desc: Use image node_id 5 for calling a global function with example usage: _get_ij_dist(distances) and returns: i,  j,  min_distances