code: def _ndarray_get_edges(adjacency_mat):
      # Get indices of all non zero values
      i, j = np.where(adjacency_mat)
  
      return np.concatenate(
          (i[:, np.newaxis], j[:, np.newaxis]), axis=-1
      )
  
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _ndarray_get_edges(adjacency_mat) and returns: np