code: def test_gif(h, f):
      """GIF ('87 and '89 variants)"""
      if h[:6] in (b"GIF87a", b"GIF89a"):
          return "gif"
  
file_path: catboost/contrib/tools/python3/src/Lib/imghdr.py
imports: from os import PathLike
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: test_gif(h, f) and returns: str