code: def test_mismatched_dims():
      f = np.arange(128 * 128, dtype=float).reshape((128, 128))
      filter = np.arange(17, dtype=float) - 8
      filter **= 2
      filter /= -16
      np.exp(filter, filter)
      with pytest.raises(ValueError):
          mahotas.convolve(f, filter)
  
imports: import numpy
  import mahotas
  import mahotas.convolve
  import mahotas
  from mahotas.convolve import convolve1d, gaussian_filter
  import mahotas._filters
  from mahotas.tests.utils import luispedro_jpg
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_mismatched_dims() without return types