def METHOD_NAME(self):
    def fn(x):
        global g_list
        val = x + g_list[1]
        """
        Strictly speaking, we are not testing STORE_GLOBAL
        here, since STORE_SUBSCR is actually used to store.
        """
        g_list[1] += 1
        return val
    x = torch.randn(10)
    cnts = torch._dynamo.testing.CompileCounter()
    opt_fn = torch._dynamo.optimize(cnts)(fn)
    res1 = opt_fn(x)
    res2 = fn(x)
    self.assertTrue(same(res2 - res1, torch.ones(10)))