code: def test_pil_kwargs_webp():
      plt.plot([0, 1, 2], [0, 1, 0])
      buf_small = io.BytesIO()
      pil_kwargs_low = {"quality": 1}
      plt.savefig(buf_small, format="webp", pil_kwargs=pil_kwargs_low)
      assert len(pil_kwargs_low) == 1
      buf_large = io.BytesIO()
      pil_kwargs_high = {"quality": 100}
      plt.savefig(buf_large, format="webp", pil_kwargs=pil_kwargs_high)
      assert len(pil_kwargs_high) == 1
      assert buf_large.getbuffer().nbytes > buf_small.getbuffer().nbytes
  
imports: import io
  import numpy
  from numpy.testing import assert_array_almost_equal
  from PIL import Image, TiffTags
  import pytest
  from matplotlib import collections, patheffects, pyplot, transforms, rcParams, rc_context
  from matplotlib.backends.backend_agg import RendererAgg
  from matplotlib.figure import Figure
  from matplotlib.image import imread
  from matplotlib.path import Path
  from matplotlib.testing.decorators import image_comparison
  from matplotlib.transforms import IdentityTransform
label_desc: Use image node_id 11 for calling a global function with example usage: test_pil_kwargs_webp() without return types