code: def _is_ipython_env():
      """Check if we are in an IPython environment (with a kernel)."""
      try:
          from IPython import get_ipython
  
          return "IPKernelApp" in get_ipython().config
      except (ImportError, AttributeError):
          return False
  
file_path: plotly-resampler/plotly_resampler/registering.py
imports: from functools import wraps
  import plotly
  from plotly_resampler import FigureResampler, FigureWidgetResampler
  from plotly_resampler.figure_resampler.figure_resampler_interface import AbstractFigureAggregator
label_desc: Use image node_id 3 for calling a global function with example usage: _is_ipython_env() and returns: unknown, False