code: def test_unsupported_settings(self, DummyInputLayer):
      try:
          from lasagne.layers.cuda_convnet import Conv2DCCLayer
      except ImportError:
          pytest.skip("cuda_convnet not available")
  
      input_layer = DummyInputLayer((128, 3, 32, 32))
  
      with pytest.raises(RuntimeError) as exc:
          layer = Conv2DCCLayer(
              input_layer, num_filters=16, filter_size=(3, 5)
          )
      assert (
          "Conv2DCCLayer only supports square filters"
          in exc.value.args[0]
      )
  
      with pytest.raises(RuntimeError) as exc:
          layer = Conv2DCCLayer(
              input_layer,
              num_filters=16,
              filter_size=(3, 3),
              stride=(1, 2),
          )
      assert (
          "Conv2DCCLayer only supports square strides"
          in exc.value.args[0]
      )
  
      with pytest.raises(RuntimeError) as exc:
          layer = Conv2DCCLayer(
              input_layer, num_filters=15, filter_size=(3, 3)
          )
      assert (
          "Conv2DCCLayer requires num_filters to be a multiple of 16"
          in exc.value.args[0]
      )
  
      with pytest.raises(RuntimeError) as exc:
          layer = Conv2DCCLayer(
              input_layer,
              num_filters=16,
              filter_size=(3, 3),
              pad=(1, 2),
          )
      assert (
          "Conv2DCCLayer only supports square padding"
          in exc.value.args[0]
      )
  
      input_layer = DummyInputLayer((128, 7, 32, 32))
  
      with pytest.raises(RuntimeError) as exc:
          layer = Conv2DCCLayer(
              input_layer, num_filters=16, filter_size=(3, 3)
          )
      assert (
          "Conv2DCCLayer requires the number of input channels to be "
          "1, 2, 3 or a multiple of 4" in exc.value.args[0]
      )
  
imports: import numpy
  import pytest
  import importlib
  import theano
  from theano import tensor
  import lasagne
  from lasagne.utils import floatX, as_tuple
label_desc: Use image node_id 2 for calling the TestConv2DCCLayer obj's underlying member method code with example usage: obj.test_unsupported_settings(DummyInputLayer) without return types