code: def test_mg_louvain_with_edgevals_directed_graph(
      daskGraphFromDataset,
  ):
      # Directed graphs are not supported by Louvain and a ValueError should be
      # raised
      with pytest.raises(ValueError):
          parts, mod = dcg.louvain(daskGraphFromDataset)
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_louvain_mg.py
imports: import pytest
  import cugraph.dask
  import cugraph
  import dask_cudf
  from cugraph.testing import utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_mg_louvain_with_edgevals_directed_graph(daskGraphFromDataset) without return types