def set_keyring(keyring):
global _keyring_backend<EOL>if not isinstance(keyring, backend.KeyringBackend):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>_keyring_backend = keyring<EOL>
Set current keyring backend.