code: def test_save_comment():
      for comment in ("Created by Pillow", b"Created by Pillow"):
          out = BytesIO()
          test_card.save(out, "JPEG2000", comment=comment)
  
          with Image.open(out) as im:
              assert im.info["comment"] == b"Created by Pillow"
  
      out = BytesIO()
      long_comment = b" " * 65531
      test_card.save(out, "JPEG2000", comment=long_comment)
      with Image.open(out) as im:
          assert im.info["comment"] == long_comment
  
      with pytest.raises(ValueError):
          test_card.save(out, "JPEG2000", comment=long_comment + b" ")
  
imports: from __future__ import annotations
  import os
  import re
  from io import BytesIO
  import pytest
  from PIL import Image, ImageFile, Jpeg2KImagePlugin, UnidentifiedImageError, _binary, features
  from .helper import assert_image_equal, assert_image_similar, assert_image_similar_tofile, skip_unless_feature, skip_unless_feature_version
label_desc: Use image node_id 37 for calling a global function with example usage: test_save_comment() without return types