code: def test_convolve1d_axis():
      f = np.random.random((128, 32))
      w = np.array([0.1, 0.2, 0.4])
      fw = mh.convolve1d(f, w, 0)
      for i in range(32):
          assert np.allclose(
              np.correlate(f.T[i], w, "same")[1:-1], fw[1:-1, i]
          )
  
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 24 for calling a global function with example usage: test_convolve1d_axis() without return types