code: def test_sanity():
      # Internal version number
      assert re.search(
          r"\d+\.\d+\.\d+$", features.version_codec("jpg_2000")
      )
  
      with Image.open("Tests/images/test-card-lossless.jp2") as im:
          px = im.load()
          assert px[0, 0] == (0, 0, 0)
          assert im.mode == "RGB"
          assert im.size == (640, 480)
          assert im.format == "JPEG2000"
          assert im.get_format_mimetype() == "image/jp2"
  
imports: import os
  import re
  from io import BytesIO
  import pytest
  from PIL import Image, ImageFile, Jpeg2KImagePlugin, UnidentifiedImageError, features
  from .helper import assert_image_equal, assert_image_similar, assert_image_similar_tofile, skip_unless_feature
label_desc: Use image node_id 2 for calling a global function with example usage: test_sanity() without return types