code: def test_leiden_directed_graph():
      edgevals = True
      G = karate_asymmetric.get_graph(
          create_using=cugraph.Graph(directed=True),
          ignore_weights=not edgevals,
      )
  
      with pytest.raises(ValueError):
          parts, mod = cugraph_leiden(G)
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_leiden.py
imports: import gc
  import time
  import pytest
  import networkx
  import cugraph
  import cudf
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from cugraph.datasets import karate_asymmetric
label_desc: Use image node_id 7 for calling a global function with example usage: test_leiden_directed_graph() without return types