code: def byte_to_float(b, mantissabits=5, zeroexp=2):
      """Decodes a floating point number stored in a single byte."""
      if type(b) is not int:
          b = ord(b)
      if b == 0:
          return 0.0
  
      bits = (b & 0xFF) << (24 - mantissabits)
      bits += (63 - zeroexp) << 24
      return unpack("f", pack("i", bits))[0]
  
imports: import math, struct
  from array import array
  from bisect import bisect_left
  from struct import pack, unpack
  from whoosh.compat import b, long_type
  from whoosh.system import pack_byte, unpack_byte, pack_ushort, unpack_ushort
  from whoosh.system import pack_int, unpack_int, pack_uint, unpack_uint
  from whoosh.system import pack_long, unpack_long, pack_ulong, unpack_ulong
  from whoosh.system import pack_float, unpack_float, pack_double, unpack_double
label_desc: Use image node_id 12 for calling a global function with example usage: byte_to_float(b, mantissabits, zeroexp) and returns: unpack, int