class_docstr: A base class of GridSpec that specifies the geometry of the grid
  that a subplot will be placed.
class_docstr_tok: ["A","base","class","of","GridSpec","that","specifies","the","geometry","of","the","grid","that","a","subplot","will","be","placed","."]
code: def __repr__(self):
      height_arg = (
          f", height_ratios={self._row_height_ratios!r}"
          if len(set(self._row_height_ratios)) != 1
          else ""
      )
      width_arg = (
          f", width_ratios={self._col_width_ratios!r}"
          if len(set(self._col_width_ratios)) != 1
          else ""
      )
      return "{clsname}({nrows}, {ncols}{optionals})".format(
          clsname=self.__class__.__name__,
          nrows=self._nrows,
          ncols=self._ncols,
          optionals=height_arg + width_arg,
      )
  
imports: import copy
  import logging
  from numbers import Integral
  import numpy
  import matplotlib
  from matplotlib import _api, _pylab_helpers, _tight_layout
  from matplotlib.transforms import Bbox
label_desc: Use image node_id 2 for calling the GridSpecBase obj's underlying member method code with example usage: obj.__repr__() and returns: str