class_docstr: A grid of Axes.
  
  In Matplotlib, the Axes location (and size) is specified in normalized
  figure coordinates. This may not be ideal for images that needs to be
  displayed with a given aspect ratio; for example, it is difficult to
  display multiple images of a same size with some fixed padding between
  them.  AxesGrid can be used in such case.
code: def _init_locators(self):
      self._divider.set_horizontal(
          [Size.Scaled(1), self._horiz_pad_size] * (self._ncols - 1)
          + [Size.Scaled(1)]
      )
      self._divider.set_vertical(
          [Size.Scaled(1), self._vert_pad_size] * (self._nrows - 1)
          + [Size.Scaled(1)]
      )
      for i in range(self.ngrids):
          col, row = self._get_col_row(i)
          self.axes_all[i].set_axes_locator(
              self._divider.new_locator(
                  nx=2 * col, ny=2 * (self._nrows - 1 - row)
              )
          )
  
imports: from numbers import Number
  import functools
  from types import MethodType
  import numpy
  from matplotlib import _api, cbook
  from matplotlib.gridspec import SubplotSpec
  from .axes_divider import Size, SubplotDivider, Divider
  from .mpl_axes import Axes, SimpleAxisArtist
label_desc: Use image node_id 2 for calling the Grid obj's underlying member method code with example usage: obj._init_locators() without return types