class_docstr: Helper methods for Kubeflow Handler.
class_docstr_tok: ["Helper","methods","for","Kubeflow","Handler","."]
docstr: Stops a run.
docstr_tok: ["Stops","a","run","."]
code: def terminate_run(self) -> None:
      """Stops a run."""
      self._client._run_api.terminate_run(
          self.flags_dict[labels.RUN_ID]
      )  # pylint: disable=protected-access
      click.echo("Run terminated.")
  
imports: import functools
  import os
  import sys
  import time
  from typing import Any, Dict, Optional
  import click
  import kfp
  from tfx.orchestration.kubeflow import kubeflow_dag_runner
  from tfx.tools.cli import labels
  from tfx.tools.cli.container_builder import builder
  from tfx.tools.cli.handler import base_handler
  from tfx.tools.cli.handler import kubeflow_dag_runner_patcher
label_desc: Use image node_id 9 for calling the KubeflowHandler obj's underlying member method code with example usage: obj.terminate_run() without return types