code: def is_terminal_interactive_shell() -> bool:
      """Check whether we are in a terminal interactive shell or not."""
      return isinstance(get_ipython(), TerminalInteractiveShell)
  
imports: import logging
  import os
  import time
  import typing
  from functools import lru_cache
  import plotly.io
  import tqdm
  from ipykernel.zmqshell import ZMQInteractiveShell
  from IPython import get_ipython
  from IPython.display import display
  from IPython.terminal.interactiveshell import TerminalInteractiveShell
  from tqdm.notebook import tqdm
  from deepchecks.utils.logger import get_verbosity
label_desc: Use image node_id 3 for calling a global function with example usage: is_terminal_interactive_shell() and returns: isinstance