class_docstr: Mixin class for overloading __magic__ operations on random variables.
class_docstr_tok: ["Mixin","class","for","overloading","__magic__","operations","on","random","variables","."]
code: def __rmul__(self, x: Union[float, Tensor]):
      return RandomVariable(
          TransformedDistribution(
              self.distribution, AffineTransform(0, x)
          )
      )
  
imports: from typing import Union
  from torch import Tensor
  from pyro.distributions import TransformedDistribution
  from pyro.distributions.transforms import AbsTransform, AffineTransform, ExpTransform, PowerTransform, SigmoidTransform, SoftmaxTransform, TanhTransform, Transform
label_desc: Use image node_id 6 for calling the RVMagicOps obj's underlying member method code with example usage: obj.__rmul__(x) and returns: RandomVariable