<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_result(self, *, block=False, timeout=None):
 """Get the result of this pipeline. Pipeline results are represented by the result of the last message in the chain. Parameters: block(bool):
 Whether or not to block until a result is set. timeout(int):
 The maximum amount of time, in ms, to wait for a result when block is True. Defaults to 10 seconds. Raises: ResultMissing: When block is False and the result isn't set. ResultTimeout: When waiting for a result times out. Returns: object: The result. """

        return self.messages[-1].get_result(block=block, timeout=timeout)