code: def _is_connected(
      adjacency: npt.NDArray[np.float32], i: int, j: int
  ) -> bool:
      if adjacency[i, j]:
          return True
  
      connections = np.where(adjacency[i])[0]
      adjacency[i] = False
      adjacency[:, i] = False
      for idx in connections:
          if _is_connected(adjacency, idx, j):
              return True
      return False
  
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 6 for calling a global function with example usage: _is_connected(adjacency, i, j) and returns: False, True, True