code: def test_throw_rendering_complexity_exceeded():
      plt.rcParams["path.simplify"] = False
      xx = np.arange(2_000_000)
      yy = np.random.rand(2_000_000)
      yy[1000] = np.nan
  
      fig, ax = plt.subplots()
      ax.plot(xx, yy)
      with pytest.raises(OverflowError):
          fig.savefig(io.BytesIO())
  
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 15 for calling a global function with example usage: test_throw_rendering_complexity_exceeded() without return types