human
Solve the following python programming problem given the following code:
def test_global(self) : 
    assert (py2js ('global foo;foo = 3').strip () == 'foo = 3;') 
    def func1() : 
        def inner() : 
            x = 3 
x = 2 
        inner () 
        return x 
def func2() : 
        def inner() : 
            global x 
            x = 3 
x = 2 
        inner () 
        return x 
assert (evaljs ((py2js (func1) + 'func1()')) == '2') 
    assert (evaljs ((py2js (self) + 'func2()')) == '3') 

    
    

    Fix the buggy line: assert (evaljs ((py2js (self) + 'func2()')) == '3')
assistant
#Here is Python code to fix the buggy line: assert (evaljs ((py2js (self) + 'func2()')) == '3')
.

assert (evaljs ((py2js (def func2() + 'func2()')) == '3')