class_docstr: Sparse matrix object class in C++ backend.
code: def __getstate__(self):
      return (
          self.format,
          self.num_rows,
          self.num_cols,
          self.indices,
          self.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 6 for calling the SparseMatrix obj's underlying member method code with example usage: obj.__getstate__() and returns: self,  self,  self,  self,  self