code: def test_mode():
      for in_mode, req_mode, out_mode in [
          ("RGB", "1", "RGB"),
          ("RGB", "L", "L"),
          ("RGB", "RGB", "RGB"),
          ("RGB", "YCbCr", "YCbCr"),
          ("L", "1", "L"),
          ("L", "L", "L"),
          ("L", "RGB", "L"),
          ("L", "YCbCr", "L"),
          ("CMYK", "1", "CMYK"),
          ("CMYK", "L", "CMYK"),
          ("CMYK", "RGB", "CMYK"),
          ("CMYK", "YCbCr", "CMYK"),
      ]:
          im = draft_roundtrip(in_mode, (64, 64), req_mode, None)
          im.load()
          assert im.mode == out_mode
  
imports: from __future__ import annotations
  from PIL import Image
  from .helper import fromstring, skip_unless_feature, tostring
label_desc: Use image node_id 3 for calling a global function with example usage: test_mode() without return types