code: def test_invalid_input_wcc():
      """
      Ensures that only supported dtypes are accepted.
      """
      import pylibcugraph
  
      graph = [
          [0, 1, 1, 0, 0],
          [0, 0, 1, 0, 0],
          [0, 0, 0, 0, 0],
          [0, 0, 0, 0, 1],
          [0, 0, 0, 0, 0],
      ]
      scipy_csr = csr_matrix(graph)
  
      sp_offsets = scipy_csr.indptr  # unsupported
      sp_indices = scipy_csr.indices  # unsupported
  
      resource_handle = ResourceHandle()
      graph_props = GraphProperties(
          is_symmetric=False, is_multigraph=False
      )
      with pytest.raises(TypeError):
          pylibcugraph.weakly_connected_components(
              resource_handle, None, sp_offsets, sp_indices, None, False
          )
  
      resource_handle = ResourceHandle()
      cp_offsets = cp.asarray(scipy_csr.indptr)  # unsupported
      cp_indices = cp.asarray(scipy_csr.indices)  # unsupported
  
      G = SGGraph(
          resource_handle,
          graph_props,
          cp_offsets,
          cp_indices,
          None,
          store_transposed=False,
          renumber=False,
          do_expensive_check=True,
          input_array_format="CSR",
      )
  
      # cannot set both a graph and csr arrays as input
      with pytest.raises(TypeError):
          pylibcugraph.weakly_connected_components(
              resource_handle, G, cp_offsets, cp_indices, None, True
          )
  
file_path: cugraph/python/pylibcugraph/pylibcugraph/tests/test_connected_components.py
imports: from pathlib import Path
  import pytest
  import numpy
  import pandas
  import cupy
  from scipy.sparse import coo_matrix, csr_matrix
  from pylibcugraph import ResourceHandle, GraphProperties, SGGraph
  from pylibcugraph.testing import utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_invalid_input_wcc() without return types