code: def get_layout_engine(
      fig: Figure,
  ) -> mpl.layout_engine.LayoutEngine | None:
      """Handle changes to auto layout engine interface in 3.6"""
      if hasattr(fig, "get_layout_engine"):
          return fig.get_layout_engine()
      else:
          # _version_predates(mpl, 3.6)
          return None
  
file_path: seaborn/seaborn/_compat.py
imports: from __future__ import annotations
  from typing import Literal
  import numpy
  import matplotlib
  from matplotlib.figure import Figure
  from seaborn.utils import _version_predates
label_desc: Use image node_id 5 for calling a global function with example usage: get_layout_engine(fig) and returns: fig, None