code: def u2i(uint32):
      
      mask = (2 ** 32) - 1
      if uint32 & (1 << 31):
          v = uint32 | ~mask
      else:
          v = uint32 & mask
      return v
docs: Converts a 32 bit unsigned number to signed.
  
      uint32:= an unsigned 32 bit number
  
      ...
      print(u2i(4294967272))
      -24
      print(u2i(37))
      37
      ...