code: def test_from_spmatrix_including_explicit_zero(self, format):
      sp_sparse = pytest.importorskip("scipy.sparse")
  
      mat = sp_sparse.random(10, 2, density=0.5, format=format)
      mat.data[0] = 0
      result = pd.DataFrame.sparse.from_spmatrix(mat)
      dtype = SparseDtype("float64", 0.0)
      expected = pd.DataFrame(mat.todense()).astype(dtype)
      tm.assert_frame_equal(result, expected)
  
imports: import string
  import numpy
  import pytest
  import pandas
  from pandas import SparseDtype
  import pandas._testing
  from pandas.core.arrays.sparse import SparseArray
label_desc: Use image node_id 3 for calling the TestFrameAccessor obj's underlying member method code with example usage: obj.test_from_spmatrix_including_explicit_zero(format) without return types