code: def ipython() -> (
      ModuleType | None
  ):  # XXX: should be IPython | None, but not supported
      """A PyTest fixture that will automatically skip a test if IPython is
      not installed.
  
      """
      ipython = import_optional("IPython")
      if ipython is None:
          pytest.skip("IPython is not installed")
      return ipython
  
imports: from __future__ import annotations
  import logging
  from types import ModuleType
  import pytest
  from bokeh.util.dependencies import import_optional
label_desc: Use image node_id 1 for calling a global function with example usage: ipython() and returns: ipython