def METHOD_NAME(
    self,
    account: str,  # skipcq: PYL-W0613
    project: str,  # skipcq: PYL-W0613
    sponsorship: Optional[str] = None,
) -> ProjectSponsorMembership:
    obj = (
        self.model.query.join(Project)
        .join(Account, Project.account)
        .filter(self.model.uuid_b58 == sponsorship)
        .one_or_404()
    )
    if not obj.is_active:
        abort(410)
    return obj