docstr: Saving a palette-based file to WebP format should work, and be
  similar to the original file.
docstr_tok: ["Saving","a","palette-based","file","to","WebP","format","should","work",",","and","be","similar","to","the","original","file","."]
code: def test_write_unsupported_mode_P(self, tmp_path):
      """
      Saving a palette-based file to WebP format should work, and be
      similar to the original file.
      """
  
      self._roundtrip(tmp_path, "P", 50.0)
  
imports: import io
  import re
  import sys
  import pytest
  from PIL import Image, WebPImagePlugin, features
  from .helper import assert_image_similar, assert_image_similar_tofile, hopper, skip_unless_feature
label_desc: Use image node_id 9 for calling the TestFileWebp obj's underlying member method code with example usage: obj.test_write_unsupported_mode_P(tmp_path) without return types