code: def sortable_long_to_float(x, signed):
      if signed:
          x -= 1 << 63
      if x < 0:
          x ^= 0x7FFFFFFFFFFFFFFF
      x = _dunpack(_qpack(x))[0]
      return x
  
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 8 for calling a global function with example usage: sortable_long_to_float(x, signed) and returns: x