code: def test_ktruss_subgraph_directed_Graph():
      k = 5
      edgevals = True
      G = karate_asymmetric.get_graph(
          download=True,
          create_using=cugraph.Graph(directed=True),
          ignore_weights=not edgevals,
      )
      with pytest.raises(ValueError):
          cugraph.k_truss(G, k)
  
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 7 for calling a global function with example usage: test_ktruss_subgraph_directed_Graph() without return types