code: def test_extract_subgraph_nonrenumbered_noedgedata(
      dataset2_simple_MGPropertyGraph, as_pg_first
  ):
      """
      Ensure a subgraph can be extracted that contains no edge_data.
      """
      from cugraph import Graph
  
      (pG, data) = dataset2_simple_MGPropertyGraph
  
      if as_pg_first:
          G = pG.extract_subgraph(create_using=pG).extract_subgraph(
              create_using=Graph(directed=True), add_edge_data=False
          )
      else:
          G = pG.extract_subgraph(
              create_using=Graph(directed=True), add_edge_data=False
          )
  
      actual_edgelist = G.edgelist.edgelist_df.compute()
  
      src_col_name = pG.src_col_name
      dst_col_name = pG.dst_col_name
  
      # create a DF without the properties (ie. the last column)
      expected_edgelist = cudf.DataFrame(
          columns=[src_col_name, dst_col_name],
          data=[(i, j) for (i, j, k) in data[1]],
      )
  
      assert_frame_equal(
          expected_edgelist.sort_values(
              by=src_col_name, ignore_index=True
          ),
          actual_edgelist.sort_values(
              by=src_col_name, ignore_index=True
          ),
      )
      assert hasattr(G, "edge_data") is False
  
imports: import gc
  import pytest
  import pandas
  import numpy
  import cudf
  import cugraph
  import dask_cudf
  import cupy
  import cugraph.dask
  from cupy.testing import assert_array_equal
  from cudf.testing import assert_frame_equal, assert_series_equal
  from pylibcugraph.testing.utils import gen_fixture_params_product
  from cugraph.dask.common.mg_utils import is_single_gpu
  from cugraph.datasets import cyber, netscience
label_desc: Use image node_id 15 for calling a global function with example usage: test_extract_subgraph_nonrenumbered_noedgedata(dataset2_simple_MGPropertyGraph, as_pg_first) without return types