code: def test_gbernsen():
      np.random.seed(120)
      for i in range(4):
          f = 32 * np.random.rand(64, 96)
          f = f.astype(np.uint8)
          b = gbernsen(f, np.ones((3, 3), bool), 15, 145)
          assert f.shape == b.shape
  
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 9 for calling a global function with example usage: test_gbernsen() without return types