docstr: Check to see if ticks can be drawn. Either returns True or raises
  an exception.
code: def _assert_can_draw_ticks(self):
      """
      Check to see if ticks can be drawn. Either returns True or raises
      an exception.
  
      """
      # Check labelling is supported, currently a limited set of options.
      if not isinstance(self.crs, PlateCarree):
          raise TypeError(
              f"Cannot label {self.crs.__class__.__name__} "
              "gridlines. Only PlateCarree gridlines are "
              "currently supported."
          )
      return True
  
imports: import itertools
  import operator
  import warnings
  import matplotlib
  import matplotlib.artist
  import matplotlib.collections
  import matplotlib.text
  import matplotlib.ticker
  import matplotlib.transforms
  import numpy
  import shapely.geometry
  import cartopy
  from cartopy.crs import PlateCarree, Projection, _RectangularProjection
  from cartopy.mpl.ticker import LatitudeFormatter, LatitudeLocator, LongitudeFormatter, LongitudeLocator
label_desc: Use image node_id 24 for calling the Gridliner obj's underlying member method code with example usage: obj._assert_can_draw_ticks() and returns: True