code: def test_dx10_r8g8b8a8():
      """Check DX10 images can be opened"""
  
      with Image.open(TEST_FILE_DX10_R8G8B8A8) as im:
          im.load()
  
          assert im.format == "DDS"
          assert im.mode == "RGBA"
          assert im.size == (256, 256)
  
          assert_image_equal_tofile(
              im, TEST_FILE_DX10_R8G8B8A8.replace(".dds", ".png")
          )
  
imports: from io import BytesIO
  import pytest
  from PIL import DdsImagePlugin, Image
  from .helper import assert_image_equal, assert_image_equal_tofile, hopper
label_desc: Use image node_id 7 for calling a global function with example usage: test_dx10_r8g8b8a8() without return types