<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def readSB(self, bits):
 """ Read a signed int using the specified number of bits """

        shift = 32 - bits
        return int32(self.readbits(bits) << shift) >> shift