def METHOD_NAME(self, tensor, other):
    if other.size() == torch.Size([]):
        return torch.nn.quantized.DeQuantize()(
            torch.ops.quantized.mul(self.left_quantization(tensor), other.item())
        )
    else:
        return torch.nn.quantized.DeQuantize()(
            torch.ops.quantized.mul(
                self.left_quantization(tensor),
                self.right_quantization(other),
                scale=self.scale,
                zero_point=self.zero_point,
            )
        )