code: def get_gridlines(self, which="major", axis="both"):
      grid_lines = []
  
      if axis in ["both", "x"]:
          for gl in self.grid_info["lon"]["lines"]:
              grid_lines.extend(gl)
      if axis in ["both", "y"]:
          for gl in self.grid_info["lat"]["lines"]:
              grid_lines.extend(gl)
  
      return grid_lines
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import zip
  from itertools import chain
  from .grid_finder import GridFinder
  from .axislines import AxisArtistHelper, GridHelperBase
  from .axis_artist import AxisArtist
  from matplotlib.transforms import Affine2D, IdentityTransform
  import numpy
  from matplotlib.path import Path
label_desc: Use image node_id 7 for calling the GridHelperCurveLinear obj's underlying member method code with example usage: obj.get_gridlines(which, axis) and returns: grid_lines