def METHOD_NAME(self):
    # more tortured example at
    # https://github.com/pytorch/pytorch/issues/81385
    def model(x):
        x = x.clone()
        x.resize_(20)
        x.fill_(2)
        return x
    @torch._dynamo.optimize("cudagraphs")
    def fn(x):
        for i in range(N_ITERS):
            with self.subTest(i):
                rx = model(x)
                self.assertTrue(same(rx, torch.full((20,), 2.0, device="cuda:0")))
    x = torch.empty(0, device="cuda:0")
    fn(x)