code: def testListMustBeLengthTwo(self, input_sizes, module_hidden_sizes):
      batch_size = 16
      inputs = tree.map_structure(
          lambda size: tf.random.uniform([batch_size, size]),
          input_sizes,
      )
      modules = tree.map_structure(linear.Linear, module_hidden_sizes)
  
      with self.assertRaisesRegex(AssertionError, "must be length 2"):
          util.apply_linear(inputs, modules)
  
imports: from absl.testing import parameterized
  import numpy
  from sonnet.src import linear
  from sonnet.src import test_utils
  from sonnet.src.nets.dnc import util
  import tensorflow
  import tree
label_desc: Use image node_id 5 for calling the LinearTest obj's underlying member method code with example usage: obj.testListMustBeLengthTwo(input_sizes, module_hidden_sizes) without return types