code: def __init__(self, ax, direction):
      if isinstance(ax, Axes):
          self._ax_list = [ax]
      else:
          self._ax_list = ax
  
      try:
          self._get_func = self._get_func_map[direction]
      except KeyError:
          raise KeyError(
              "direction must be one of left, right, bottom, top"
          )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib.cbook
  from matplotlib.axes import Axes
label_desc: Use image node_id 5 to create a new GetExtentHelper object from inherited base classes: object with example: obj = GetExtentHelper(ax, direction)