code: def _get_edges(adjacency_mat):
      func = (
          _sparse_get_edges
          if issparse(adjacency_mat)
          else _ndarray_get_edges
      )
      return func(adjacency_mat)
  
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _get_edges(adjacency_mat) and returns: func