code: def test_defaults(self, DummyInputLayer, input, W, output, kwargs):
      from lasagne.layers import LocallyConnected2DLayer
  
      b, c, h, w = input.shape
      input_layer = DummyInputLayer((b, c, h, w))
      layer = LocallyConnected2DLayer(input_layer, W=W, **kwargs)
      actual = layer.get_output_for(theano.shared(input)).eval()
      assert actual.shape == output.shape
      assert actual.shape == layer.output_shape
      assert np.allclose(actual, output)
  
file_path: Lasagne/lasagne/tests/layers/test_local.py
imports: import numpy
  import pytest
  import theano
  from lasagne.utils import floatX
label_desc: Use image node_id 1 for calling the TestLocallyConnected2DLayer obj's underlying member method code with example usage: obj.test_defaults(DummyInputLayer, input, W, output, kwargs) without return types