def METHOD_NAME(self):
    # Borrowed from test_python_autograd.py
    class Variable:
        def __init__(self, value: torch.Tensor, name: str = None):
            self.value = value
            self.name = name or fresh_name()
    def fn(a, b):
        a = Variable(a)
        b = Variable(b)
        return a.value + b.value, a.name + b.name
    a = torch.randn(10)
    b = torch.randn(10)
    cnts = torch._dynamo.testing.CompileCounter()
    opt_fn = torch._dynamo.optimize(cnts)(fn)
    v0, s0 = opt_fn(a, b)
    self.assertEqual(s0, "v0v1")
    reset_name()