code: def is_notebook():
      """
      Determine if the code is being executed in a Jupyter notebook environment.
  
      Returns
      -------
      bool :
          True if the code is being executed in a Jupyter notebook, False otherwise.
      """
      try:
          from IPython import get_ipython
  
          if (
              "IPKernelApp" not in get_ipython().config
          ):  # pragma: no cover
              return False
      except ImportError:
          return False
      except AttributeError:
          return False
      return True
  
file_path: neural_prophet/neuralprophet/plot_utils.py
imports: import logging
  import warnings
  from collections import OrderedDict
  from typing import Optional
  import numpy
  import torch
  from neuralprophet import time_dataset, utils_torch
label_desc: Use image node_id 10 for calling a global function with example usage: is_notebook() and returns: True, False, False, False