code: def test_sum_float_axis(self):
      for xp, sp in ((numpy, scipy.sparse), (cupy, sparse)):
          m = _make(xp, sp, self.dtype)
          with pytest.raises(TypeError):
              m.sum(axis=0.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 8 for calling the TestDiaMatrixScipyComparison obj's underlying member method code with example usage: obj.test_sum_float_axis() without return types