code: def test_ppm(h, f):
      """PPM (portable pixmap)"""
      if (
          len(h) >= 3
          and h[0] == ord(b"P")
          and h[1] in b"36"
          and h[2] in b" \t\n\r"
      ):
          return "ppm"
  
file_path: catboost/contrib/tools/python3/src/Lib/imghdr.py
imports: from os import PathLike
  import warnings
label_desc: Use image node_id 9 for calling a global function with example usage: test_ppm(h, f) and returns: str