code: def test_count_nonzero_execution(setup):
      raw = [[0, 1, 7, 0, 0], [3, 0, 0, 2, 19]]
  
      arr = tensor(raw, chunk_size=5)
      t = count_nonzero(arr)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw)
      np.testing.assert_equal(res, expected)
  
      arr = tensor(raw, chunk_size=2)
      t = count_nonzero(arr)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw)
      np.testing.assert_equal(res, expected)
  
      t = count_nonzero(arr, axis=0)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw, axis=0)
      np.testing.assert_equal(res, expected)
  
      t = count_nonzero(arr, axis=1)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw, axis=1)
      np.testing.assert_equal(res, expected)
  
      raw = sps.csr_matrix(raw)
  
      arr = tensor(raw, chunk_size=2)
      t = count_nonzero(arr)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw.A)
      np.testing.assert_equal(res, expected)
  
      t = count_nonzero(arr, axis=0)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw.A, axis=0)
      np.testing.assert_equal(res, expected)
  
      t = count_nonzero(arr, axis=1)
  
      res = t.execute().fetch()
      expected = np.count_nonzero(raw.A, axis=1)
      np.testing.assert_equal(res, expected)
  
      # test string dtype
      a = tensor(list("abcdefghi"), dtype=object)
      assert count_nonzero(a).execute().fetch() == 9
      a = tensor(list("abcdefghi"), dtype=object, chunk_size=2)
      assert count_nonzero(a).execute().fetch() == 9
  
imports: import numpy
  import scipy.sparse
  import pytest
  from ....utils import ignore_warning
  from ...datasource import ones, tensor
  from ..None import mean, nansum, nanmax, nanmin, nanmean, nanprod, nanargmax, nanargmin, nanvar, nanstd, count_nonzero, allclose, array_equal, var, std, nancumsum, nancumprod
label_desc: Use image node_id 13 for calling a global function with example usage: test_count_nonzero_execution(setup) without return types