code: def test_add_of_adds_has_penultimate(self):
      add2 = operators.Add(
          bnns=(
              kernels.OneLayerBNN(width=50),
              kernels.OneLayerBNN(width=50),
          )
      )
      add2more = operators.Add(
          bnns=(
              kernels.OneLayerBNN(width=50),
              kernels.OneLayerBNN(width=50),
          )
      )
      addtree = operators.Add(bnns=(add2, add2more))
      params = addtree.init(jax.random.PRNGKey(0), jnp.zeros(5))
      lp = addtree.log_prior(params)
      self.assertLess(lp, 0.0)
      h = addtree.apply(params, jnp.ones(5), method=addtree.penultimate)
      self.assertEqual((50,), h.shape)
  
file_path: probability/tensorflow_probability/python/experimental/autobnn/operators_test.py
imports: from absl.testing import parameterized
  import jax
  import jax.numpy
  import numpy
  from tensorflow_probability.python.experimental.autobnn import kernels
  from tensorflow_probability.python.experimental.autobnn import operators
  from tensorflow_probability.python.experimental.autobnn import util
  from tensorflow_probability.substrates.jax.distributions import distribution
  from absl.testing import absltest
label_desc: Use image node_id 6 for calling the OperatorsTest obj's underlying member method code with example usage: obj.test_add_of_adds_has_penultimate() without return types