code: def test_except(self):
      with self.assertRaises(ValueError):
          _ = ConvDenseBlock(
              spatial_dims=2,
              in_channels=self.input_channels,
              channels=[1, 2],
              dilations=[1, 2, 3],
          )
  
imports: from __future__ import annotations
  import unittest
  import torch.nn
  from monai.networks.blocks import ConvDenseBlock, DenseBlock
  from tests.utils import TorchImageTestCase2D, TorchImageTestCase3D
label_desc: Use image node_id 2 for calling the TestConvDenseBlock2D obj's underlying member method code with example usage: obj.test_except() without return types