code: def is_inline_backend():
      """
      Return True if the inline_backend is on
  
      This can only be True if also running in an jupyter/ipython session.
      """
      import matplotlib as mpl
  
      return "matplotlib_inline.backend_inline" in mpl.get_backend()
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
label_desc: Use image node_id 2 for calling a global function with example usage: is_inline_backend() and returns: unknown