code: def test_smoke():
      assert moments(np.zeros((100, 23)), 2, 2) == 0.0
      assert moments(np.ones((100, 23)), 2, 2) != 0.0
      assert moments(np.ones((100, 23)), 0, 0) == 100 * 23
      assert moments(np.ones((100, 23)), 2, 2) != moments(
          np.ones((100, 23)), 2, 2, cm=(50, 12)
      )
  
file_path: mahotas/mahotas/tests/test_moments.py
imports: import numpy
  import mahotas
  from mahotas.features.moments import moments
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_smoke() without return types