def METHOD_NAME(self, updown, orig_weight, output_shape, ex_bias=None):
    if self.bias is not None:
        updown = updown.reshape(self.bias.shape)
        updown += self.bias.to(orig_weight.device, dtype=orig_weight.dtype)
        updown = updown.reshape(output_shape)
    if len(output_shape) == 4:
        updown = updown.reshape(output_shape)
    if orig_weight.size().numel() == updown.size().numel():
        updown = updown.reshape(orig_weight.shape)
    if ex_bias is not None:
        ex_bias = ex_bias * self.multiplier()
    return updown * self.calc_scale() * self.multiplier(), ex_bias