code: def test_stretch():
      np.random.seed(2323)
      A = np.random.randint(12, 121, size=(100, 100))
      A = stretch(A, 255)
      assert A.max() > 250
      assert A.min() == 0
      A = stretch(A, 20)
      assert A.max() <= 20
      A = stretch(A, 10, 20)
      assert A.min() >= 10
      A = stretch(A * 0, 10, 20)
      assert A.min() >= 10
  
file_path: mahotas/mahotas/tests/test_stretch.py
imports: from mahotas.stretch import stretch
  import mahotas
  import mahotas
  import pytest
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_stretch() without return types