code: def test_set_xticks_non_cylindrical():
      ax = plt.axes(projection=ccrs.Orthographic())
      with pytest.raises(RuntimeError):
          ax.set_xticks([-180, -90, 0, 90, 180], crs=ccrs.Geodetic())
      with pytest.raises(RuntimeError):
          ax.set_xticks(
              [-135, -45, 45, 135], minor=True, crs=ccrs.Geodetic()
          )
  
file_path: cartopy/lib/cartopy/tests/mpl/test_ticks.py
imports: import matplotlib.pyplot
  import pytest
  import cartopy.crs
  from cartopy.mpl.ticker import LatitudeFormatter, LongitudeFormatter
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_xticks_non_cylindrical() without return types