this is a test import the name nestedscopes twice to trigger sf bug 407394 regression from future import nestedscopes nestedscopes def fx def gy return x y return g result f24 import the name nested_scopes twice to trigger sf bug 407394 regression
from __future__ import nested_scopes, nested_scopes

def f(x):
    def g(y):
        return x + y
    return g

result = f(2)(4)