code: def test_compare_w_slow(R):
      for N in (3, 5, 7):
          assert np.all(
              mahotas.morph.majority_filter(R, N) == slow_majority(R, N)
          )
  
file_path: mahotas/mahotas/tests/test_majority.py
imports: import numpy
  import mahotas.morph
  from scipy import ndimage
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_compare_w_slow(R) without return types