code: def _job_str(j: Job) -> str:
      """returns a job string for cli commands"""
      s = f"{j.id:<8d} {update_job_status(j):9s} {j.spec.platform.name:>8s} "
      s += f"{str(j.created):.19s} container: {j.container} "
      if j.spec.platform == Platform.CAIP:
          s += f'name: {j.details["jobId"]}'
      elif j.spec.platform == Platform.GKE:
          s += f"name: {get_gke_job_name(j)}"
      return s
  
imports: import logging
  import os
  from typing import Any, Dict, Iterable, List, Optional
  from sqlalchemy import or_
  from sqlalchemy.orm import Session
  from caliban.docker.build import build_image
  from caliban.docker.push import push_uuid_tag
  from caliban.history.submit import submit_job_specs
  from caliban.history.types import ContainerSpec, Experiment, ExperimentGroup, Job, JobStatus, Platform
  from caliban.history.util import get_gke_job_name, get_sql_engine, replace_job_spec_image, session_scope, stop_job, update_job_status
  from caliban.platform.gke.util import credentials, user_verify
  from caliban.util import Package, current_user
label_desc: Use image node_id 1 for calling a global function with example usage: _job_str(j) and returns: s