code: def conv1d(input, kernel, stride=1):
      output = []
      for b in input:
          temp = []
          for c in kernel:
              temp.append(np.convolve(b[0, :], c[0, :], mode="valid"))
          output.append(temp)
      return np.array(output)[:, :, ::stride]
  
file_path: Lasagne/lasagne/tests/test_theano_extensions.py
imports: import pytest
  import numpy
  import theano.tensor
  import lasagne
label_desc: Use image node_id 1 for calling a global function with example usage: conv1d(input, kernel, stride) and returns: np