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