[red-knot] Avoid panics for ipython magic commands (#14326)
## Summary
Avoids panics when encountering Jupyter notebooks with [IPython magic
commands](https://ipython.readthedocs.io/en/stable/interactive/magics.html).
## Test Plan
Added Jupyter notebook to corpus.