code: def test_template_match():
      np.random.seed(33)
      A = 255 * np.random.random((1024, 512))
      t = A[8:12, 8:12] + 1
      m = template_match(A, t)
  
      assert m[10, 10] == 16
      # I had tried testing over the whole image, but that took too long.
      for i in range(100):
          y = np.random.randint(m.shape[0] - 4)
          x = np.random.randint(m.shape[1] - 4)
          assert np.allclose(
              m[y + 2, x + 2],
              np.sum((A[y : y + 4, x : x + 4] - t) ** 2),
          )
  
imports: import numpy
  import mahotas.convolve
  from mahotas.convolve import template_match
label_desc: Use image node_id 1 for calling a global function with example usage: test_template_match() without return types