code: def test_default_num_resolutions():
      for num_resolutions in range(2, 6):
          d = 1 << (num_resolutions - 1)
          im = test_card.resize((d - 1, d - 1))
          with pytest.raises(OSError):
              roundtrip(im, num_resolutions=num_resolutions)
          reloaded = roundtrip(im)
          assert_image_equal(im, reloaded)
  
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 16 for calling a global function with example usage: test_default_num_resolutions() without return types