def METHOD_NAME(
    self, account_id: str, pub_block_config: Dict[str, Any]
) -> None:
    # The account ID should equal the account id that is set for Moto:
    if account_id != self.account_id:
        raise WrongPublicAccessBlockAccountIdError()
    if not pub_block_config:
        raise InvalidPublicAccessBlockConfiguration()
    self.public_access_block = PublicAccessBlock(
        pub_block_config.get("BlockPublicAcls"),
        pub_block_config.get("IgnorePublicAcls"),
        pub_block_config.get("BlockPublicPolicy"),
        pub_block_config.get("RestrictPublicBuckets"),
    )