code: def test_hitmiss():
      A = np.zeros((100, 100), np.bool_)
      Bc = np.array([[0, 1, 2], [0, 1, 1], [2, 1, 1]])
      mahotas.morph.hitmiss(A, Bc)
      assert not mahotas.morph.hitmiss(A, Bc).sum()
  
      A[4:7, 4:7] = np.array([[0, 1, 1], [0, 1, 1], [0, 1, 1]])
      assert mahotas.morph.hitmiss(A, Bc).sum() == 1
      assert mahotas.morph.hitmiss(A, Bc)[5, 5]
  
imports: import mahotas
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_hitmiss() without return types