code: def max_yticks_width(
      pack: LayoutPack,
      axes_loc: AxesLocation = "all",
  ) -> float:
      """
      Return maximum width[inches] of a y ticks
      """
      W = pack.figure.get_figwidth()
      widths = [
          tight_bbox_in_figure_space(
              tick.tick1line, pack.figure, pack.renderer
          ).width
          + (tick.get_pad() or 0) / (72 * W)
          for ax in filter_axes(pack.axs, axes_loc)
          for tick in get_yaxis_ticks(pack, ax)
      ]
      return max(widths) if len(widths) else 0
  
imports: from __future__ import annotations
  import typing
  from abc import ABC
  from dataclasses import dataclass, fields
  from itertools import chain
  from matplotlib._tight_layout import get_subplotspec_list
  from ..facets import facet_grid, facet_null, facet_wrap
  from .patches import SFancyBboxPatch
  from .utils import bbox_in_figure_space, tight_bbox_in_figure_space
label_desc: Use image node_id 18 for calling a global function with example usage: max_yticks_width(pack, axes_loc) and returns: unknown