def METHOD_NAME(
    executor: Callable[[QPROGRAM], MeasurementResult]
) -> Callable[[QPROGRAM], MeasurementResult]:
    mitigated_executor = mitigate_executor(
        executor,
        inverse_confusion_matrix=inverse_confusion_matrix,
    )
    return cast(
        Callable[[QPROGRAM], MeasurementResult],
        mitigated_executor,
    )