code: def test_pilinfo():
      buf = io.StringIO()
      features.pilinfo(buf)
      out = buf.getvalue()
      lines = out.splitlines()
      assert lines[0] == "-" * 68
      assert lines[1].startswith("Pillow ")
      assert lines[2].startswith("Python ")
      lines = lines[3:]
      while lines[0].startswith("    "):
          lines = lines[1:]
      assert lines[0] == "-" * 68
      assert lines[1].startswith("Python modules loaded from ")
      assert lines[2].startswith("Binary modules loaded from ")
      assert lines[3] == "-" * 68
      jpeg = (
          "\n"
          + "-" * 68
          + "\n"
          + "JPEG image/jpeg\n"
          + "Extensions: .jfif, .jpe, .jpeg, .jpg\n"
          + "Features: open, save\n"
          + "-" * 68
          + "\n"
      )
      assert jpeg in out
  
file_path: pillow/Tests/test_features.py
imports: from __future__ import annotations
  import io
  import re
  import pytest
  from PIL import features
  from .helper import skip_unless_feature
label_desc: Use image node_id 14 for calling a global function with example usage: test_pilinfo() without return types