code: def test_polar_neg_theta_lims():
      fig = plt.figure()
      ax = fig.add_subplot(projection="polar")
      ax.set_thetalim(-np.pi, np.pi)
      labels = [l.get_text() for l in ax.xaxis.get_ticklabels()]
      assert labels == [
          "-180°",
          "-135°",
          "-90°",
          "-45°",
          "0°",
          "45°",
          "90°",
          "135°",
      ]
  
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  import matplotlib
  from matplotlib import pyplot
  from matplotlib.testing.decorators import image_comparison, check_figures_equal
label_desc: Use image node_id 35 for calling a global function with example usage: test_polar_neg_theta_lims() without return types