code: def test_jpeg(h, f):
      """JPEG data with JFIF or Exif markers; and raw JPEG"""
      if h[6:10] in (b"JFIF", b"Exif"):
          return "jpeg"
      elif h[:4] == b"\xff\xd8\xff\xdb":
          return "jpeg"
  
file_path: catboost/contrib/tools/python3/src/Lib/imghdr.py
imports: from os import PathLike
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: test_jpeg(h, f) and returns: str, str