<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_ftp_error(error):
 # type: (ftplib.Error) -> Tuple[Text, Text] """Extract code and message from ftp error."""

    code, _, message = text_type(error).partition(" ")
    return code, message