code: def test_nansum_with_boolean(self):
      # gh-2978
      a = np.zeros(2, dtype=bool)
      try:
          np.nansum(a)
      except Exception:
          raise AssertionError()
  
imports: import os
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, _assert_valid_refcount
label_desc: Use image node_id 26 for calling the TestRegression obj's underlying member method code with example usage: obj.test_nansum_with_boolean() without return types