code: def do_adjust_figure(fig: Figure) -> bool:
      """Whether fig has constrained_layout enabled."""
      if not hasattr(fig, "get_constrained_layout"):
          return False
      return not fig.get_constrained_layout()
  
imports: from __future__ import annotations
  from math import ceil
  from typing import TYPE_CHECKING, Iterable, Sequence
  import warnings
  from matplotlib import ticker
  import matplotlib.table
  import numpy
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndex, ABCSeries
label_desc: Use image node_id 1 for calling a global function with example usage: do_adjust_figure(fig) and returns: unknown, False