code: def test_triangles_directed_graph():
      input_data_path = karate_asymmetric.get_path()
      M = utils.read_csv_for_nx(input_data_path)
      G = cugraph.Graph(directed=True)
      cu_M = cudf.DataFrame()
      cu_M["src"] = cudf.Series(M["0"])
      cu_M["dst"] = cudf.Series(M["1"])
  
      cu_M["weights"] = cudf.Series(M["weight"])
      G.from_cudf_edgelist(
          cu_M, source="src", destination="dst", edge_attr="weights"
      )
  
      with pytest.raises(ValueError):
          cugraph.triangle_count(G)
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_triangle_count.py
imports: import gc
  import random
  import networkx
  import pytest
  import cudf
  import cugraph
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from cugraph.datasets import karate_asymmetric
  from pylibcugraph.testing.utils import gen_fixture_params_product
label_desc: Use image node_id 6 for calling a global function with example usage: test_triangles_directed_graph() without return types