code: def test_fft_peaks():
      fig, ax = plt.subplots()
      t = np.arange(65536)
      p1 = ax.plot(
          abs(
              np.fft.fft(
                  np.sin(2 * np.pi * 0.01 * t) * np.blackman(len(t))
              )
          )
      )
  
      # Ensure that the path's transform takes the new axes limits into account.
      fig.canvas.draw()
      path = p1[0].get_path()
      transform = p1[0].get_transform()
      path = transform.transform_path(path)
      simplified = path.cleaned(simplify=True)
  
      assert simplified.vertices.size == 36
  
imports: import base64
  import io
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import pytest
  from matplotlib.testing.decorators import check_figures_equal, image_comparison, remove_ticks_and_titles
  import matplotlib.pyplot
  from matplotlib import patches, transforms
  from matplotlib.path import Path
label_desc: Use image node_id 13 for calling a global function with example usage: test_fft_peaks() without return types