code: def test_jpeg(h, f):
      # SOI APP2 + ICC_PROFILE
      if h[0:4] == "\xff\xd8\xff\xe2" and h[6:17] == b"ICC_PROFILE":
          return "jpeg"
      # SOI APP14 + Adobe
      if h[0:4] == "\xff\xd8\xff\xee" and h[6:11] == b"Adobe":
          return "jpeg"
      # SOI DQT
      if h[0:4] == "\xff\xd8\xff\xdb":
          return "jpeg"
  
imports: import xml.etree.ElementTree
  from collections import OrderedDict
  import json
  import struct
  import imghdr
  import numpy
  from .geom import pt, rect
label_desc: Use image node_id 11 for calling a global function with example usage: test_jpeg(h, f) and returns: str, str, str