tfx.dsl.compiler.compiler_utils.resolve_execution_mode

Resolves execution mode for a tfx pipeline.

tfx_pipeline a TFX pipeline python object assembled by SDK.

a proto enum reflecting the execution mode of the pipeline.

RuntimeError when execution mode is ASYNC while enable_cache is true.
ValueError when seeing unrecognized execution mode.