code: def test_directed_graph_check(read_csv, use_weight):
      _, M, _ = read_csv
  
      cu_M = cudf.DataFrame()
      cu_M[SRC_COL] = cudf.Series(M[SRC_COL])
      cu_M[DST_COL] = cudf.Series(M[DST_COL])
      if use_weight:
          cu_M[EDGE_ATT_COL] = cudf.Series(M[EDGE_ATT_COL])
  
      G1 = cugraph.Graph(directed=True)
      weight = EDGE_ATT_COL if use_weight else None
      G1.from_cudf_edgelist(
          cu_M, source=SRC_COL, destination=DST_COL, weight=weight
      )
  
      vertex_pair = cu_M[[SRC_COL, DST_COL]]
  
      vertex_pair = vertex_pair[:5]
      with pytest.raises(ValueError):
          cugraph.sorensen(G1, vertex_pair, use_weight)
  
imports: import gc
  import pytest
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from cugraph.datasets import netscience
  from cudf.testing import assert_series_equal
  from cudf.testing.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_directed_graph_check(read_csv, use_weight) without return types