code: def test_pickle_roundtrip(self):
      s = _make(cupy, sparse, self.dtype)
      s2 = pickle.loads(pickle.dumps(s))
      assert s.shape == s2.shape
      assert s.dtype == s2.dtype
      if scipy_available:
          assert (s.get() != s2.get()).count_nonzero() == 0
  
imports: import pickle
  import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupyx.scipy import sparse
label_desc: Use image node_id 12 for calling the TestDiaMatrix obj's underlying member method code with example usage: obj.test_pickle_roundtrip() without return types