code: def test_piesno_type():
      # This is testing if the `sum_m2` cast is overflowing
      data = np.ones((10, 10, 10), dtype=np.int16)
      for i in range(10):
          data[:, i, :] = i * 26
  
      sigma = piesno(
          data, N=2, alpha=0.01, l=1, eps=1e-10, return_mask=False
      )
      assert_almost_equal(sigma, 79.970003117424739)
  
file_path: dipy/dipy/denoise/tests/test_noise_estimate.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_, assert_array_almost_equal, assert_warns
  from dipy.denoise.noise_estimate import _inv_nchi_cdf, piesno, estimate_sigma
  from dipy.denoise.noise_estimate import _piesno_3D
  from dipy.denoise.pca_noise_estimate import pca_noise_estimate
  import dipy.data
  import dipy.core.gradients
  from dipy.io.image import load_nifti_data
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 3 for calling a global function with example usage: test_piesno_type() without return types