code: def _is_last_row(ax):
      try:
          return ax.get_subplotspec().is_last_row()  # 3.4+
      except AttributeError:
          return ax.is_last_row()
      return ax.get_subplotspec().is_last_row()
  
imports: import inspect
  import operator
  import os
  import warnings
  from contextlib import contextmanager
  from io import StringIO
  from math import log
  from pprint import pprint
  import numpy
label_desc: Use image node_id 18 for calling a global function with example usage: _is_last_row(ax) and returns: ax, ax, ax