class_docstr: Reversible version of the Select combinator.
class_docstr_tok: ["Reversible","version","of","the","Select","combinator","."]
code: def reverse(
      self, outputs, weights=(), state=(), new_state=(), rng=None
  ):
      del state, new_state, rng, weights
      if not isinstance(outputs, (tuple, list)):
          outputs = (outputs,)
      selected = tuple(outputs[i] for i in self._reverse_indices)
      return selected[0] if len(selected) == 1 else selected
  
imports: from absl import logging
  import jax
  from trax import fastmath
  from trax.layers import base
  from trax.layers import combinators
label_desc: Use image node_id 3 for calling the ReversibleSelect obj's underlying member method code with example usage: obj.reverse(outputs, weights, state, new_state, rng) and returns: unknown