<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def import_key(keyid):
 """Import a key, either ASCII armored, or a GPG key id. @param keyid: the key in ASCII armor format, or a GPG key id. @raises SystemExit() via sys.exit() on failure. """

    try:
        return fetch_import_key(keyid)
    except GPGKeyError as e:
        error_out("Could not import key: {}".format(str(e)))