code: def _check_deprecated_image_build_flags(
      build_target_image=None,
      skaffold_cmd=None,
      pipeline_package_path=None,
  ):
      """Checks and exits if deprecated flags were used."""
      if build_target_image is not None:
          sys.exit(
              "[Error] --build-target-image flag was DELETED. You should specify "
              "the build target image at the `KubeflowDagRunnerConfig` class "
              "instead, and use --build-image flag without argument to build a "
              "container image when creating or updating a pipeline."
          )
  
      if skaffold_cmd is not None:
          sys.exit(
              "[Error] --skaffold-cmd flag was DELETED. TFX doesn't use skaffold "
              "any more. You can delete --skaffold-cmd flag and the auto-genrated "
              "build.yaml file. You must specify --build-image to trigger an "
              "image build when creating or updating a pipeline."
          )
  
      if pipeline_package_path is not None:
          sys.exit(
              "[Error] --pipeline-package-path flag was DELETED. You can specify "
              "the package location as `output_filename` and `output_dir` when "
              "creating a `KubeflowDagRunner` instance. CLI will read the pacakge "
              "path specified there."
          )
  
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 1 for calling a global function with example usage: _check_deprecated_image_build_flags(build_target_image, skaffold_cmd, pipeline_package_path) without return types