code: def test_from_edgelist(dask_client, directed):
      input_data_path = (
          RAPIDS_DATASET_ROOT_DIR_PATH / "karate.csv"
      ).as_posix()
      print(f"dataset={input_data_path}")
      chunksize = dcg.get_chunksize(input_data_path)
      ddf = dask_cudf.read_csv(
          input_data_path,
          chunksize=chunksize,
          delimiter=" ",
          names=["src", "dst", "value"],
          dtype=["int32", "int32", "float32"],
      )
  
      dg1 = cugraph.from_edgelist(
          ddf,
          source="src",
          destination="dst",
          edge_attr="value",
          create_using=cugraph.Graph(directed=directed),
      )
  
      dg2 = cugraph.Graph(directed=directed)
      dg2.from_dask_cudf_edgelist(
          ddf, source="src", destination="dst", edge_attr="value"
      )
  
      assert dg1.EdgeList == dg2.EdgeList
  
file_path: cugraph/python/cugraph/cugraph/tests/utils/test_utils_mg.py
imports: import gc
  import os
  import time
  import pytest
  import numpy
  import cugraph
  import dask_cudf
  import cugraph.dask
  from cugraph.testing import utils
  from cugraph.dask.common.mg_utils import is_single_gpu
  from cugraph.dask.common.read_utils import get_n_workers
  from dask.distributed import default_client, futures_of, wait
  from cugraph.testing.utils import RAPIDS_DATASET_ROOT_DIR_PATH
  from cugraph.dask.common.part_utils import concat_within_workers
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_edgelist(dask_client, directed) without return types