I'm using IPython version 7.27. The following code snippet throws a `NameError: name 'variable' is not defined`: ``` def test(msg): %time variable = msg print(variable) test("moin") ``` The bug is similar to #11659 and #11813, but it seems to only occur when used inside a function body.