human
Here's a good function header given the following:
I wrote the below code

    def check_main():
        import __main__ as main
        return ((not hasattr(main, '__file__')) or get_option('mode.sim_interactive'))
    try:
        return (__IPYTHON__ or check_main())
    except:
        return check_main()

What's a good function header?
assistant
#Here's a good function header.

def in_interactive_session():