code: def test_otsu_fast():
      np.random.seed(120)
      for i in range(12):
          A = 32 * np.random.rand(128, 128)
          A = A.astype(np.uint8)
          fast = otsu(A)
          slow = slow_otsu(A)
          assert fast == slow
  
file_path: mahotas/mahotas/tests/test_thresholding.py
imports: import numpy
  from mahotas.thresholding import otsu, rc, bernsen, gbernsen
  from mahotas.histogram import fullhistogram
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_otsu_fast() without return types