def METHOD_NAME(self, account_id: str) -> PublicAccessBlock:
    # The account ID should equal the account id that is set for Moto:
    if account_id != self.account_id:
        raise WrongPublicAccessBlockAccountIdError()
    if not self.public_access_block:
        raise NoSuchPublicAccessBlockConfiguration()
    return self.public_access_block