class_docstr: Implements the ``tight_layout`` geometry management.  See
  :ref:`tight_layout_guide` for details.
docstr: Execute tight_layout.
  
  This decides the subplot parameters given the padding that
  will allow the axes labels to not be covered by other labels
  and axes.
  
  Parameters
  ----------
  fig : `.Figure` to perform layout on.
  
  See Also
  --------
  .figure.Figure.tight_layout
  .pyplot.tight_layout
docstr_tok: ["Execute","tight_layout",".","This","decides","the","subplot","parameters","given","the","padding","that","will","allow","the","axes","labels","to","not","be","covered","by","other","labels","and","axes",".","Parameters","--","--","--","--","--","fig",":","`",".Figure","`","to","perform","layout","on",".","See","Also","--","--","--","--",".figure.Figure.tight_layout",".pyplot.tight_layout"]
code: def execute(self, fig):
      """
      Execute tight_layout.
  
      This decides the subplot parameters given the padding that
      will allow the axes labels to not be covered by other labels
      and axes.
  
      Parameters
      ----------
      fig : `.Figure` to perform layout on.
  
      See Also
      --------
      .figure.Figure.tight_layout
      .pyplot.tight_layout
      """
      info = self._params
      renderer = fig._get_renderer()
      with getattr(renderer, "_draw_disabled", nullcontext)():
          kwargs = get_tight_layout_figure(
              fig,
              fig.axes,
              get_subplotspec_list(fig.axes),
              renderer,
              pad=info["pad"],
              h_pad=info["h_pad"],
              w_pad=info["w_pad"],
              rect=info["rect"],
          )
      if kwargs:
          fig.subplots_adjust(**kwargs)
  
imports: from contextlib import nullcontext
  import matplotlib
  from matplotlib._constrained_layout import do_constrained_layout
  from matplotlib._tight_layout import get_subplotspec_list, get_tight_layout_figure
label_desc: Use image node_id 2 for calling the TightLayoutEngine obj's underlying member method code with example usage: obj.execute(fig) without return types