code: def compile_pipeline(
      ctx: Context, engine: str, pipeline_path: str, package_path: str
  ) -> None:
      """Command definition to compile a pipeline."""
      # TODO(b/179847638): Delete checks for deprecated flags.
      _check_deprecated_image_build_flags(
          pipeline_package_path=package_path
      )
  
      click.echo("Compiling pipeline")
      ctx.flags_dict[labels.ENGINE_FLAG] = engine
      ctx.flags_dict[labels.PIPELINE_DSL_PATH] = pipeline_path
      handler_factory.create_handler(ctx.flags_dict).compile_pipeline()
  
file_path: tfx/tfx/tools/cli/commands/pipeline.py
imports: import sys
  from typing import Optional
  import click
  from tfx.tools.cli import labels
  from tfx.tools.cli.cli_context import Context
  from tfx.tools.cli.cli_context import pass_context
  from tfx.tools.cli.handler import handler_factory
label_desc: Use image node_id 7 for calling a global function with example usage: compile_pipeline(ctx, engine, pipeline_path, package_path) without return types