code: def check_results(d_vertices, d_clusters, modularity):
      expected_vertices = np.array([1, 2, 3, 0, 4, 5], dtype=np.int32)
      expected_clusters = np.array([0, 0, 0, 0, 1, 1], dtype=np.int32)
      expected_modularity = 0.125
  
      h_vertices = d_vertices.get()
      h_clusters = d_clusters.get()
  
      assert np.array_equal(expected_vertices, h_vertices)
      assert np.array_equal(expected_clusters, h_clusters)
      assert expected_modularity == modularity
  
imports: import cupy
  import numpy
  import cudf
  from pylibcugraph import SGGraph, ResourceHandle, GraphProperties
  from pylibcugraph import louvain
label_desc: Use image node_id 1 for calling a global function with example usage: check_results(d_vertices, d_clusters, modularity) without return types