code: def test_from_edgelist(graph_file):
      """
      Compare the resulting Graph objs from cugraph.from_edgelist() calls of both
      a cudf and pandas DataFrame and ensure the results are equal.
      """
      df = utils.read_csv_file(graph_file)
      pdf = utils.read_csv_for_nx(graph_file)
  
      G1 = cugraph.from_edgelist(df, source="0", destination="1")
      G2 = cugraph.from_edgelist(pdf, source="0", destination="1")
  
      assert G1.EdgeList == G2.EdgeList
  
file_path: cugraph/python/cugraph/cugraph/tests/structure/test_convert_matrix.py
imports: import gc
  import pytest
  import numpy
  import networkx
  import cugraph
  from cugraph.testing import utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_from_edgelist(graph_file) without return types