code: def Serialize(self, writer):
          
          writer.WriteUInt32(self.Version)
          writer.WriteUInt64(self.Services)
          writer.WriteUInt32(self.Timestamp)
          writer.WriteUInt16(self.Port)
          writer.WriteUInt32(self.Nonce)
          writer.WriteVarString(self.UserAgent)
          writer.WriteUInt32(self.StartHeight)
          writer.WriteBool(self.Relay)
docs: Serialize object.
  
          Args:
              writer (neo.IO.BinaryWriter):