code: def ax_has_ygrid(ax):
      return bool(
          ax and ax.yaxis._gridOnMajor and ax.yaxis.get_gridlines()
      )
  
imports: import warnings
  import itertools
  from contextlib import contextmanager
  from distutils.version import LooseVersion
  import numpy
  import matplotlib
  from matplotlib import transforms
  from ..None import utils
  from ..None import _py3k_compat
label_desc: Use image node_id 3 for calling the Renderer obj's underlying member method code with example usage: obj.ax_has_ygrid(ax) and returns: bool