code: def test_invalid_settings(self, DummyInputLayer):
      from lasagne.layers import LocallyConnected2DLayer
  
      input_layer = DummyInputLayer((10, 2, 4, 4))
      with pytest.raises(ValueError) as exc:
          LocallyConnected2DLayer(input_layer, 4, 3, channelwise=True)
      assert (
          "num_filters and the number of input channels should match"
          in exc.value.args[0]
      )
      input_layer = DummyInputLayer((10, 2, None, 4))
      with pytest.raises(ValueError) as exc:
          LocallyConnected2DLayer(input_layer, 4, 3, channelwise=True)
      assert (
          "A LocallyConnected2DLayer requires a fixed input shape "
          "(except for the batch size)" in exc.value.args[0]
      )
  
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 3 for calling the TestLocallyConnected2DLayer obj's underlying member method code with example usage: obj.test_invalid_settings(DummyInputLayer) without return types