code: def test_squared_error(colvect):
      # symbolic version
      from lasagne.objectives import squared_error
  
      if not colvect:
          a, b = theano.tensor.matrices("ab")
          c = squared_error(a, b)
      else:
          a, b = theano.tensor.vectors("ab")
          c = squared_error(a.dimshuffle(0, "x"), b)[:, 0]
      # numeric version
      floatX = theano.config.floatX
      shape = (10, 20) if not colvect else (10,)
      x = np.random.rand(*shape).astype(floatX)
      y = np.random.rand(*shape).astype(floatX)
      z = (x - y) ** 2
      # compare
      assert np.allclose(z, c.eval({a: x, b: y}))
  
imports: import numpy
  import theano
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_squared_error(colvect) without return types