code: def from_db_binary(value):
      if value is None:
          return value
  
      (dim, unused) = unpack(">HH", value[:4])
      return np.frombuffer(
          value, dtype=">f", count=dim, offset=4
      ).astype(dtype=np.float32)
  
imports: import numpy
  from struct import pack, unpack
label_desc: Use image node_id 2 for calling a global function with example usage: from_db_binary(value) and returns: np, value