code: def _in_notebook():
      try:
          from IPython import get_ipython
  
          return get_ipython() is not None
      except ImportError:
          return False
  
imports: import subprocess
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: _in_notebook() and returns: unknown, False