code: def in_interactive_session():
      """check if we're running in an interactive shell
  
      returns True if running under python/ipython interactive shell
      """
      from pandas import get_option
  
      def check_main():
          try:
              import __main__ as main
          except ModuleNotFoundError:
              return get_option("mode.sim_interactive")
          return not hasattr(main, "__file__") or get_option(
              "mode.sim_interactive"
          )
  
      try:
          return __IPYTHON__ or check_main()  # noqa
      except NameError:
          return check_main()
  
file_path: catboost/contrib/python/pandas/py2/pandas/io/formats/console.py
imports: import locale
  import sys
  from pandas.io.formats.terminal import get_terminal_size
label_desc: Use image node_id 3 for calling a global function with example usage: in_interactive_session() and returns: unknown, unknown, check_main, get_option