class_docstr: Sparse matrix object class in C++ backend.
code: def __setstate__(self, state):
      fmt, nrows, ncols, indices, flags = state
      indices = [F.zerocopy_to_dgl_ndarray(idx) for idx in indices]
      self.__init_handle_by_constructor__(
          _CAPI_DGLCreateSparseMatrix, fmt, nrows, ncols, indices, flags
      )
  
imports: from __future__ import absolute_import
  import ctypes
  import functools
  import operator
  import numpy
  from .None import backend
  from ._ffi.function import _init_api
  from ._ffi.ndarray import _set_class_ndarray, context, DGLContext, DGLDataType, empty, empty_shared_mem, from_dlpack, NDArrayBase, numpyasarray
  from ._ffi.object import ObjectBase, register_object
label_desc: Use image node_id 7 for calling the SparseMatrix obj's underlying member method code with example usage: obj.__setstate__(state) without return types