code: def test_error_incorrect_args_channel_list(self, list_length):
      channel_list = [i for i in range(list_length)]
      with self.assertRaisesRegex(
          ValueError,
          "channels_per_group` must be of length 4 not {}".format(
              list_length
          ),
      ):
          resnet.ResNet(
              [1, 1, 1, 1],
              10,
              {"decay_rate": 0.9, "eps": 1e-5},
              channels_per_group=channel_list,
          )
  
file_path: dm-haiku/haiku/_src/nets/resnet_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import haiku
  from haiku._src import test_utils
  from haiku._src import transform
  from haiku._src.nets import resnet
  import jax
  import jax.numpy
  import numpy
label_desc: Use image node_id 4 for calling the ResnetTest obj's underlying member method code with example usage: obj.test_error_incorrect_args_channel_list(list_length) without return types