code: def test_decode_webp():
      """Test case for decode_webp."""
      width = 400
      height = 301
      channel = 4
      png_file = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_image",
          "sample.png",
      )
      with open(png_file, "rb") as f:
          png_contents = f.read()
      filename = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_image",
          "sample.webp",
      )
      with open(filename, "rb") as f:
          webp_contents = f.read()
  
      png = tf.image.decode_png(png_contents, channels=channel)
      assert png.shape == (height, width, channel)
  
      webp_v = tfio.image.decode_webp(webp_contents)
      assert webp_v.shape == (height, width, channel)
  
      assert np.all(webp_v == png)
  
imports: import os
  import numpy
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 2 for calling a global function with example usage: test_decode_webp() without return types