code: def test_cmp_ndimage3():
      R = (255 * np.random.rand(32, 128, 8, 16)).astype(np.uint16)
      R += np.arange(16, dtype=np.uint16)
      m = mahotas.center_of_mass(R)
      n = ndimage.center_of_mass(R)
      p = slow_center_of_mass(R)
      assert np.abs(n - m).max() < 1.0
      assert np.abs(p - m).max() < 1.0
  
file_path: mahotas/mahotas/tests/test_center_of_mass.py
imports: import numpy
  from scipy import ndimage
  import mahotas.center_of_mass
label_desc: Use image node_id 4 for calling a global function with example usage: test_cmp_ndimage3() without return types