code: def test_dilate_1():
      A = np.zeros((16, 16), dtype=np.uint8)
      B = np.array([[0, 1, 0], [2, 2, 1], [1, 3, 0]], dtype=np.uint8)
      A[8, 8] = 1
      D = mahotas.dilate(A, B)
      assert np.sum(D) == np.sum(B + (B > 0))
  
file_path: mahotas/mahotas/tests/test_dilate_erode.py
imports: import numpy
  import mahotas
  import mahotas
label_desc: Use image node_id 3 for calling a global function with example usage: test_dilate_1() without return types