code: def test_ktruss_subgraph_Graph_nx():
      k = 5
      dataset_path = polbooks.get_path()
      M = utils.read_csv_for_nx(dataset_path, read_weights_in_sp=True)
      G = nx.from_pandas_edgelist(
          M,
          source="0",
          target="1",
          edge_attr="weight",
          create_using=nx.Graph(),
      )
      k_subgraph = cugraph.k_truss(G, k)
      k_truss_nx = nx.k_truss(G, k)
  
      assert nx.is_isomorphic(k_subgraph, k_truss_nx)
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_k_truss_subgraph.py
imports: import gc
  import pytest
  import networkx
  import numpy
  import cugraph
  from cugraph.testing import utils
  from cugraph.datasets import polbooks, karate_asymmetric
  from numba import cuda
label_desc: Use image node_id 6 for calling a global function with example usage: test_ktruss_subgraph_Graph_nx() without return types