<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def DeserializeTX(buffer):
 """ Deserialize the stream into a Transaction object. Args: buffer (BytesIO):
 stream to deserialize the Transaction from. Returns: neo.Core.TX.Transaction: """

        mstream = MemoryStream(buffer)
        reader = BinaryReader(mstream)

        tx = Transaction.DeserializeFrom(reader)

        return tx