def foo(r, **kwargs): def a(): pass x = 1 x = 2