code: def int32(x):
      
      if x>0xFFFFFFFF:
          raise OverflowError
      if x>0x7FFFFFFF:
          x=int(0x100000000-x)
          if x<2147483648:
              return -x
          else:
              return -2147483648
      return x
docs: Return a signed or unsigned int