code: def test_sanity():
      for codec, test_path, format in [
          ["zlib", "hopper.png", "PNG"],
          ["jpg", "hopper.jpg", "JPEG"],
      ]:
          if features.check(codec):
              with TarIO.TarIO(TEST_TAR_FILE, test_path) as tar:
                  with Image.open(tar) as im:
                      im.load()
                      assert im.mode == "RGB"
                      assert im.size == (128, 128)
                      assert im.format == format
  
imports: import pytest
  from PIL import Image, TarIO, features
  from .helper import is_pypy
label_desc: Use image node_id 1 for calling a global function with example usage: test_sanity() without return types