code: def TransformedRandomVariable(random_variable,  # pylint: disable=invalid-name
                                reversible_layer,
                                name=None,
                                sample_shape=(),
                                value=None):
    
    return ed.RandomVariable(
        distribution=TransformedDistribution(random_variable.distribution,
                                             reversible_layer,
                                             name=name),
        sample_shape=sample_shape,
        value=value)
docs: Random variable for f(x), where x ~ p(x) and f is reversible.