code: def get_coo_array(edgelist):
      coo = edgelist
      x = max(coo["src"].max(), coo["dst"].max()) + 1
      row = coo["src"].to_numpy()
      col = coo["dst"].to_numpy()
      data = coo["wgt"].to_numpy()
      M = scipy.sparse.coo_array((data, (row, col)), shape=(x, x))
  
      return M
  
file_path: cugraph/python/cugraph/cugraph/tests/layout/test_force_atlas2.py
imports: import time
  import pytest
  import cugraph
  from cugraph.structure import number_map
  from cugraph.internals import GraphBasedDimRedCallback
  from sklearn.manifold import trustworthiness
  import scipy.io
  from cugraph.datasets import karate, polbooks, dolphins, netscience, dining_prefs
label_desc: Use image node_id 2 for calling a global function with example usage: get_coo_array(edgelist) and returns: M