code: def test_adds_index_to_layer_names(self, num_layers):
      mod = mlp.MLP([1] * num_layers)
      for index, linear in enumerate(mod.layers):
          self.assertEqual(linear.name, "linear_%d" % index)
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from haiku._src import test_utils
  from haiku._src.nets import mlp
  import jax
  import jax.numpy
label_desc: Use image node_id 5 for calling the MLPTest obj's underlying member method code with example usage: obj.test_adds_index_to_layer_names(num_layers) without return types