code: def test_pil151():
      with Image.open(BytesIO(PIL151)) as im:
          im.load()
          assert im.mode == "1"
          assert im.size == (32, 32)
  
file_path: pillow/Tests/test_file_xbm.py
imports: from __future__ import annotations
  from io import BytesIO
  import pytest
  from PIL import Image, XbmImagePlugin
  from .helper import hopper
label_desc: Use image node_id 1 for calling a global function with example usage: test_pil151() without return types