code: def check_results(
      result,
      scale,
      num_edges,
      include_edge_ids,
      include_edge_weights,
      include_edge_types,
  ):
      h_src_arr, h_dst_arr, h_wgt_arr, h_ids_arr, h_types_arr = result
  
      if include_edge_weights:
          assert h_wgt_arr is not None
      if include_edge_ids:
          assert h_ids_arr is not None
      if include_edge_types:
          assert h_types_arr is not None
  
      vertices = cp.union1d(h_src_arr, h_dst_arr)
      assert len(h_src_arr) == len(h_dst_arr) == num_edges
      assert len(vertices) <= 2**scale
  
imports: import pytest
  import cupy
  from pylibcugraph import ResourceHandle
  from pylibcugraph import generate_rmat_edgelist
label_desc: Use image node_id 1 for calling a global function with example usage: check_results(result, scale, num_edges, include_edge_ids, include_edge_weights, include_edge_types) without return types