code: def get_gridlines(self, which="major", axis="both"):
      grid_lines = []
      if axis in ["both", "x"]:
          grid_lines.extend(self._grid_info["lon_lines"])
      if axis in ["both", "y"]:
          grid_lines.extend(self._grid_info["lat_lines"])
      return grid_lines
  
imports: import functools
  import numpy
  import matplotlib
  from matplotlib import _api, cbook
  import matplotlib.patches
  from matplotlib.path import Path
  from mpl_toolkits.axes_grid1.parasite_axes import host_axes_class_factory
  from .None import axislines, grid_helper_curvelinear
  from .axis_artist import AxisArtist
  from .grid_finder import ExtremeFinderSimple
label_desc: Use image node_id 5 for calling the GridHelperCurveLinear obj's underlying member method code with example usage: obj.get_gridlines(which, axis) and returns: grid_lines