code: def is_graph_on_device_type(graph, device_type):
      assert graph.csc_indptr.device.type == device_type
      assert graph.indices.device.type == device_type
      assert graph.node_type_offset.device.type == device_type
      assert graph.type_per_edge.device.type == device_type
      assert graph.csc_indptr.device.type == device_type
      for key in graph.edge_attributes:
          assert graph.edge_attributes[key].device.type == device_type
  
imports: import os
  import pickle
  import re
  import tempfile
  import unittest
  import backend
  import dgl
  import dgl.graphbolt
  import pytest
  import torch
  import torch.multiprocessing
  from dgl.graphbolt.base import etype_str_to_tuple
  from scipy import sparse
  from ..None import gb_test_utils
label_desc: Use image node_id 29 for calling a global function with example usage: is_graph_on_device_type(graph, device_type) without return types