code: def test_unsupported(self):
      if HAVE_WEBP:
          WebPImagePlugin.SUPPORTED = False
  
      file_path = "Tests/images/hopper.webp"
      with pytest.warns(UserWarning):
          with pytest.raises(OSError):
              with Image.open(file_path):
                  pass
  
      if HAVE_WEBP:
          WebPImagePlugin.SUPPORTED = True
  
imports: from __future__ import annotations
  import io
  import re
  import sys
  import warnings
  import pytest
  from PIL import Image, WebPImagePlugin, features
  from .helper import assert_image_equal, assert_image_similar, assert_image_similar_tofile, hopper, skip_unless_feature
label_desc: Use image node_id 1 for calling the TestUnsupportedWebp obj's underlying member method code with example usage: obj.test_unsupported() without return types