code: def test_sequential_params(self):
      seq = basic.Sequential(
          [
              basic.Sequential([basic.Linear(2), basic.Linear(2)]),
              basic.Sequential([lambda x: basic.Linear(2)(x * 1)]),
          ]
      )
      for _ in range(2):
          # Connect seq to ensure params are created. Connect twice to ensure that
          # we see the two instances of the lambda Linear.
          seq(jnp.zeros([1, 1]))
      params = seq.params_dict()
      self.assertCountEqual(
          list(params),
          [
              "linear/w",
              "linear/b",
              "linear_1/w",
              "linear_1/b",
              "sequential_1/linear/w",
              "sequential_1/linear/b",
          ],
      )
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from haiku._src import base
  from haiku._src import basic
  from haiku._src import test_utils
  from haiku._src import transform
  import jax
  from jax import random
  import jax.numpy
  import numpy
label_desc: Use image node_id 4 for calling the BasicTest obj's underlying member method code with example usage: obj.test_sequential_params() without return types