code: def is_graph_pinned(graph):
      assert graph.csc_indptr.is_pinned()
      assert graph.indices.is_pinned()
      assert graph.node_type_offset.is_pinned()
      assert graph.type_per_edge.is_pinned()
      assert graph.csc_indptr.is_pinned()
      for key in graph.edge_attributes:
          assert graph.edge_attributes[key].is_pinned()
  
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 30 for calling a global function with example usage: is_graph_pinned(graph) without return types