def METHOD_NAME(self, username: str) -> ImportedUserSchema:
    user = self.session.query(self.user_class).get(
        (self.resolver_name, username)
    )
    if not user:
        raise NoSuchUserError(username)
    return user