code: def test_reverse_activate_final(self, activate_final):
      activation = CountingActivation()
      mod = reversed_mlp(
          activation=activation, activate_final=activate_final
      )
      activation.count = 0
      mod(tf.ones([1, 1]))
      self.assertEqual(activation.count, 3 if activate_final else 2)
  
imports: import itertools
  from absl.testing import parameterized
  from sonnet.src import test_utils
  from sonnet.src.nets import mlp
  import tensorflow
label_desc: Use image node_id 20 for calling the MLPTest obj's underlying member method code with example usage: obj.test_reverse_activate_final(activate_final) without return types