code: def test_adaptive_otsu_small():
      """Test the function, get_threshold, using Otsu adaptive / small
  
      Use a small image (125 x 125) to break the image into four
      pieces, check that the threshold is different in each block
      and that there are four blocks broken at the 75 boundary
      """
      numpy.random.seed(0)
      image = numpy.zeros((120, 110))
      for i0, i1 in ((0, 60), (60, 120)):
          for j0, j1 in ((0, 55), (55, 110)):
              dmin = float(i0 * 2 + j0) / 500.0
              dmult = 1.0 - dmin
              # use the sine here to get a bimodal distribution of values
              r = numpy.random.uniform(0, numpy.pi * 2, (60, 55))
              rsin = (numpy.sin(r) + 1) / 2
              image[i0:i1, j0:j1] = dmin + rsin * dmult
      workspace, x = make_workspace(image)
      x.threshold_scope.value = centrosome.threshold.TM_ADAPTIVE
      x.global_operation.value = centrosome.threshold.TM_OTSU
      threshold, global_threshold, _, _, _ = x.get_threshold(
          cellprofiler_core.image.Image(
              image, mask=numpy.ones_like(image, bool)
          ),
          workspace,
      )
      assert threshold[0, 0] != threshold[0, 109]
      assert threshold[0, 0] != threshold[119, 0]
      assert threshold[0, 0] != threshold[119, 109]
  
imports: import io
  import centrosome.filter
  import centrosome.otsu
  import centrosome.threshold
  import numpy
  import numpy.testing
  import skimage.filters
  import skimage.filters.rank
  import skimage.morphology
  import cellprofiler.modules.threshold
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  from cellprofiler_core.constants.measurement import FF_ORIG_THRESHOLD
  from cellprofiler_core.constants.module._identify import TS_GLOBAL
  import cellprofiler_library.modules
  import cellprofiler_library.functions
  import tests.frontend.modules
label_desc: Use image node_id 17 for calling a global function with example usage: test_adaptive_otsu_small() without return types