code: def update_lim(self, axes):
      x1, x2 = axes.get_xlim()
      y1, y2 = axes.get_ylim()
      if self._old_limits != (x1, x2, y1, y2):
          self._update_grid(x1, y1, x2, y2)
          self._old_limits = (x1, x2, y1, y2)
  
imports: import numpy
  import matplotlib
  from matplotlib import _api
  import matplotlib.axes
  from matplotlib.path import Path
  from mpl_toolkits.axes_grid1 import mpl_axes
  from .axisline_style import AxislineStyle
  from .axis_artist import AxisArtist, GridlinesCollection
label_desc: Use image node_id 2 for calling the GridHelperBase obj's underlying member method code with example usage: obj.update_lim(axes) without return types