code: def test_ego_graph_nx(graph_file, seed, radius):
      gc.collect()
  
      # Nx
      dataset_path = graph_file.get_path()
      df = utils.read_csv_for_nx(dataset_path, read_weights_in_sp=True)
      Gnx = nx.from_pandas_edgelist(
          df,
          create_using=nx.Graph(),
          source="0",
          target="1",
          edge_attr="weight",
      )
      ego_nx = nx.ego_graph(Gnx, seed, radius=radius)
  
      # cugraph
      ego_cugraph = cugraph.ego_graph(Gnx, seed, radius=radius)
  
      assert nx.is_isomorphic(ego_nx, ego_cugraph)
  
file_path: cugraph/python/cugraph/cugraph/tests/sampling/test_egonet.py
imports: import gc
  import pytest
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
label_desc: Use image node_id 1 for calling a global function with example usage: test_ego_graph_nx(graph_file, seed, radius) without return types