def METHOD_NAME(self):
    # Mutating attribute with a Tensor type
    class Foo(torch.nn.Module):
        def __init__(self):
            super().__init__()
            self.a = torch.Tensor(3, 2)
        def forward(self, x):
            self.a = self.a.to(torch.float64)
            return x.sum() + self.a.sum()
    self.check_failure_on_export(Foo(), torch.Tensor(3, 2))