def METHOD_NAME(self, name: str, username: str) -> str | None:
    if not self.is_available():
        return None
    import keyring
    import keyring.errors
    name = self.get_entry_name(name)
    try:
        return keyring.METHOD_NAME(name, username)
    except (RuntimeError, keyring.errors.KeyringError):
        raise PoetryKeyringError(
            f"Unable to retrieve the password for {name} from the key ring"
        )