<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def failed_hosts(self) -> Dict[str, "MultiResult"]: """ Hosts that failed to complete the task """

        return {k: v for k, v in self.result.items() if v.failed}