code: def hexStr(data):
      """Convert binary data to a hex string."""
      h = string.hexdigits
      r = ""
      for c in data:
          i = byteord(c)
          r = r + h[(i >> 4) & 0xF] + h[i & 0xF]
      return r
  
imports: import ast
  import string
label_desc: Use image node_id 3 for calling a global function with example usage: hexStr(data) and returns: r