code: def DeserializeFromDB(buffer):
          
          m = StreamManager.GetStream(buffer)
          reader = BinaryReader(m)
          account = AccountState()
          account.Deserialize(reader)
  
          StreamManager.ReleaseStream(m)
  
          return account
docs: Deserialize full object.
  
          Args:
              buffer (bytes, bytearray, BytesIO): (Optional) data to create the stream from.
  
          Returns:
              AccountState: