code: def test_subgraph_extraction_DiGraph(graph_file):
      dataset_path = graph_file.get_path()
      M = utils.read_csv_for_nx(dataset_path)
      verts = np.zeros(3, dtype=np.int32)
      verts[0] = 0
      verts[1] = 1
      verts[2] = 17
      cu_sg = cugraph_call(M, verts, True)
      nx_sg = nx_call(M, verts, True)
      assert compare_edges(cu_sg, nx_sg)
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_subgraph_extraction.py
imports: import gc
  import numpy
  import pytest
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
  from cugraph.datasets import karate
label_desc: Use image node_id 5 for calling a global function with example usage: test_subgraph_extraction_DiGraph(graph_file) without return types