code: def test_bad_dtypes_scc(api_name):
      """
      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)
      num_verts = scipy_csr.get_shape()[0]
      num_edges = scipy_csr.nnz
  
      api = getattr(pylibcugraph, api_name)
  
      cp_offsets = cp.asarray(scipy_csr.indptr)
      cp_indices = cp.asarray(scipy_csr.indices)
      cp_labels = cp.zeros(num_verts, dtype=np.int64)  # unsupported
      with pytest.raises(TypeError):
          api(
              offsets=cp_offsets,
              indices=cp_indices,
              weights=None,
              num_verts=num_verts,
              num_edges=num_edges,
              labels=cp_labels,
          )
  
      cp_offsets = cp.asarray(
          scipy_csr.indptr, dtype=np.int64
      )  # unsupported
      cp_indices = cp.asarray(scipy_csr.indices)
      cp_labels = cp.zeros(num_verts, dtype=np.int32)
      with pytest.raises(TypeError):
          api(
              offsets=cp_offsets,
              indices=cp_indices,
              weights=None,
              num_verts=num_verts,
              num_edges=num_edges,
              labels=cp_labels,
          )
  
      cp_offsets = cp.asarray(scipy_csr.indptr)
      cp_indices = cp.asarray(
          scipy_csr.indices, dtype=np.float32
      )  # unsupported
      cp_labels = cp.zeros(num_verts, dtype=np.int32)
      with pytest.raises(TypeError):
          api(
              offsets=cp_offsets,
              indices=cp_indices,
              weights=None,
              num_verts=num_verts,
              num_edges=num_edges,
              labels=cp_labels,
          )
  
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 7 for calling a global function with example usage: test_bad_dtypes_scc(api_name) without return types