code: def terminate(obj, run_id, authorize=None):
      def _token_instructions(flow_name, prev_user):
          obj.echo(
              "There is an existing version of *%s* on Argo Workflows which was "
              "deployed by the user *%s*." % (flow_name, prev_user)
          )
          obj.echo(
              "To terminate this flow, you need to use the same production token that they used."
          )
          obj.echo(
              "Please reach out to them to get the token. Once you have it, call "
              "this command:"
          )
          obj.echo(
              "    argo-workflows terminate --authorize MY_TOKEN RUN_ID",
              fg="green",
          )
          obj.echo(
              'See "Organizing Results" at docs.metaflow.org for more information '
              "about production tokens."
          )
  
      validate_run_id(
          obj.workflow_name,
          obj.token_prefix,
          authorize,
          run_id,
          _token_instructions,
      )
  
      # Trim prefix from run_id
      name = run_id[5:]
      obj.echo(
          "Terminating run *{run_id}* for {flow_name} ...".format(
              run_id=run_id, flow_name=obj.flow.name
          ),
          bold=True,
      )
  
      terminated = ArgoWorkflows.terminate(obj.flow.name, name)
      if terminated:
          obj.echo("\nRun terminated.")
  
imports: import base64
  import json
  import platform
  import re
  import sys
  from hashlib import sha1
  from metaflow import JSONType, current, decorators, parameters
  from metaflow._vendor import click
  from metaflow.exception import MetaflowException, MetaflowInternalError
  from metaflow.metaflow_config import ARGO_WORKFLOWS_UI_URL, KUBERNETES_NAMESPACE, SERVICE_VERSION_CHECK, UI_URL
  from metaflow.package import MetaflowPackage
  from metaflow.plugins.aws.step_functions.production_token import load_token, new_token, store_token
  from metaflow.plugins.environment_decorator import EnvironmentDecorator
  from metaflow.plugins.kubernetes.kubernetes_decorator import KubernetesDecorator
  from metaflow.tagging_util import validate_tags
  from metaflow.util import get_username, to_bytes, to_unicode, version_parse
  from .argo_workflows import ArgoWorkflows
label_desc: Use image node_id 15 for calling a global function with example usage: terminate(obj, run_id, authorize) without return types