def METHOD_NAME(self):
    """Returns password stored in settings for accessing `self.hostname`.
    The password is stored under key `password@<hostname>`
    Returns
    -------
    str
        password stored in settings for accessing `self.hostname`
    Raises
    ------
    ValueError
        Raises a ValueError if not password is stored in settings for `self.hostname`
    """
    key = "password@{}".format(self.hostname)
    METHOD_NAME = settings.get(key)
    if not METHOD_NAME:
        raise ValueError(
            "No password found for hostname {0}. Use `{1}.set_credentials(username='<username>', password='<password>') to store credentials for this host".format(
                self.hostname, self.__class__.__name__
            )
        )
    return METHOD_NAME