code: def is_sphinx() -> bool:
      """Check if we're in a sphinx gallery env.
  
      Returns
      -------
      bool
          True if we are in a sphinx gallery context, False otherwise
      """
      return pio.renderers.default.startswith("sphinx_gallery")
  
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 2 for calling a global function with example usage: is_sphinx() and returns: pio