class_docstr: Residual connection with constant affine weights.
  
  Can simulate standard residual, no residual, and "constant gates".
code: def forward(self, x, y, transposed):
      y = self.beta * y if self.beta != 1.0 else y
      return self.alpha * x + y if self.alpha else y
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 3 for calling the Residual obj's underlying member method code with example usage: obj.forward(x, y, transposed) and returns: unknown