<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def DeserializeFromBufer(buffer, offset=0):
 """ Deserialize object instance from the specified buffer. Args: buffer (bytes, bytearray, BytesIO):
 (Optional) data to create the stream from. offset: UNUSED Returns: Transaction: """

        mstream = StreamManager.GetStream(buffer)
        reader = BinaryReader(mstream)
        tx = Transaction.DeserializeFrom(reader)

        StreamManager.ReleaseStream(mstream)
        return tx