<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, *messages):
 """ Push a message list to this context's input queue. :param mixed value: message """

        for message in messages:
            if not isinstance(message, Token):
                message = ensure_tuple(message, cls=self._input_type, length=self._input_length)
                if self._input_length is None:
                    self._input_length = len(message)
            self.input.put(message)