code: def test_lonlatformatter_non_geoaxes(cls, letter):
      ticks = [2, 2.5]
      fig = plt.figure()
      ax = fig.add_subplot(1, 1, 1)
      ax.plot([0, 10], [0, 1])
      ax.set_xticks(ticks)
      ax.xaxis.set_major_formatter(cls(degree_symbol="", dms=False))
      fig.canvas.draw()
      ticklabels = [t.get_text() for t in ax.get_xticklabels()]
      assert ticklabels == [f"{v:g}{letter}" for v in ticks]
  
imports: from unittest.mock import Mock
  import matplotlib.pyplot
  import numpy
  import pytest
  import cartopy.crs
  from cartopy.mpl.geoaxes import GeoAxes
  from cartopy.mpl.ticker import LatitudeFormatter, LatitudeLocator, LongitudeFormatter, LongitudeLocator
label_desc: Use image node_id 16 for calling a global function with example usage: test_lonlatformatter_non_geoaxes(cls, letter) without return types