I think this can't be a robust algorithm to test whether a python file is a marimo notebook. For example, run _is_marimo_file on this file exactly will return True 🤔
We thought about saving marimo notebooks with a custom extension for this reason (.mo.py), but such files can't be imported by Python's import statement.