code: def test_conv(impl, stride, filter_flip):
      import lasagne.theano_extensions.conv
  
      conv = getattr(lasagne.theano_extensions.conv, impl)
  
      X = T.tensor3()
      W = T.tensor3()
      input = lasagne.utils.floatX(np.ones((1, 1, 10)))
      kernel = lasagne.utils.floatX(np.random.uniform(-1, 1, (2, 1, 6)))
  
      conv_theano = conv(
          X,
          W,
          input.shape,
          kernel.shape,
          subsample=(stride,),
          filter_flip=filter_flip,
      ).eval({X: input, W: kernel})
  
      conv_np = conv1d(input, kernel, stride)
  
      assert np.allclose(conv_theano, conv_np)
  
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 2 for calling a global function with example usage: test_conv(impl, stride, filter_flip) without return types