code: def format_date_labels(ax: Axes, rot) -> None:
      # mini version of autofmt_xdate
      for label in ax.get_xticklabels():
          label.set_ha("right")
          label.set_rotation(rot)
      fig = ax.get_figure()
      maybe_adjust_figure(fig, bottom=0.2)
  
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 3 for calling a global function with example usage: format_date_labels(ax, rot) without return types