code: def _is_running_in_ipython():
      """Internal function that determines whether igraph is running inside
      IPython or not."""
      try:
          from IPython import get_ipython
  
          return get_ipython() is not None
      except ImportError:
          return False
  
imports: from contextlib import contextmanager
  from collections.abc import MutableMapping
  from itertools import chain
  from warnings import warn
  import os
  import tempfile
label_desc: Use image node_id 2 for calling a global function with example usage: _is_running_in_ipython() and returns: unknown, False