code: def DeserializeFromBufer(buffer, offset=0):
          
          mstream = StreamManager.GetStream(buffer)
          reader = BinaryReader(mstream)
          tx = Transaction.DeserializeFrom(reader)
  
          StreamManager.ReleaseStream(mstream)
          return tx
docs: Deserialize object instance from the specified buffer.
  
          Args:
              buffer (bytes, bytearray, BytesIO): (Optional) data to create the stream from.
              offset: UNUSED
  
          Returns:
              Transaction: