code: def test_create_param_callable_returns_shared_bad_ndim_raises_error():
      from lasagne.utils import create_param
  
      array = np.array([[1, 2], [3, 4]])
      param = theano.shared(array)
      factory = Mock()
      factory.return_value = param
      with pytest.raises(ValueError):
          create_param(factory, (2, 3, 4))
  
imports: from mock import Mock
  import pytest
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 24 for calling a global function with example usage: test_create_param_callable_returns_shared_bad_ndim_raises_error() without return types