code: def test_rmat_edgelist(scale):
      """
      Verifies that the edgelist returned by rmat() is valid based on inputs.
      """
      if _is_single_gpu:
          pytest.skip("skipping MG testing on Single GPU system")
  
      num_edges = (2**scale) * 4
      create_using = None  # Returns the edgelist from RMAT
  
      df = _call_rmat(scale, num_edges, create_using)
      assert df.npartitions == len(_visible_devices)
  
      df = df.compute()
      assert len(df) == num_edges
  
file_path: cugraph/python/cugraph/cugraph/tests/generators/test_rmat_mg.py
imports: import pytest
  import dask_cudf
  import cugraph
  from cugraph.generators import rmat
  from cugraph.testing.mg_utils import start_dask_client, stop_dask_client
  from cugraph.dask.common.mg_utils import is_single_gpu
label_desc: Use image node_id 4 for calling a global function with example usage: test_rmat_edgelist(scale) without return types