def METHOD_NAME(
    batch_definition: BatchDefinition, batch_request: BatchRequest
) -> bool:
    if not (
        batch_request.datasource_name == batch_definition.datasource_name
        and batch_request.data_asset_name == batch_definition.data_asset_name
    ):
        return False
    if batch_request.options:
        for key, value in batch_request.options.items():
            if value is not None and not (
                (key in batch_definition.batch_identifiers)
                and (
                    batch_definition.batch_identifiers[key]
                    == batch_request.options[key]
                )
            ):
                return False
    return True