code: def job_kill(job: List[str], tag: List[str], signal: str):
      """Kill jobs"""
      if not job and not tag:
          if not click.confirm(
              "Killing all jobs. Do you want to continue?"
          ):
              return 1
  
      jobs = util.get_jobs(job, tag, is_master=False)
  
      for j in jobs:
          _job = JOBS.by_key(j)
          if not _job.running:
              continue
          log_parts = util.log_job(_job)
          res = _job.server.shell(f"kill -{signal} {_job.pid}")
          if res.exit_code == 0:
              log_parts += [(" KILLED", Text.success)]
              logger.log(log_parts)
          else:
              log_parts += [(" FAILED", Text.success)]
              logger.log(log_parts)
              logger.log(res.out)
              logger.log(res.err, Text.warning)
  
file_path: labml/remote/labml_remote/cli/job.py
imports: import time
  from typing import List, Tuple
  import click
  from labml import logger, monit
  from labml.logger import Text
  from labml_remote.execute import UIMode
  from labml_remote.job import JOBS
  from labml_remote.server import SERVERS
  from .None import util
label_desc: Use image node_id 5 for calling a global function with example usage: job_kill(job, tag, signal) and returns: int