code: def test_weighted_sorensen():
      karate = UNDIRECTED_DATASETS[0]
      G = karate.get_graph(ignore_weights=True)
      with pytest.raises(ValueError):
          cugraph.sorensen(G, use_weight=True)
  
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 13 for calling a global function with example usage: test_weighted_sorensen() without return types