def METHOD_NAME(self, name: str, default=NoHostError):
    """
    Get a single host by name.
    """
    if name in self.hosts:
        return self.hosts[name]
    if default is NoHostError:
        raise NoHostError("No such host: {0}".format(name))
    return default