code: def _stop_runner(
      job_submission: JobSubmission,
      server_ssh_private_key: str,
  ):
      ports = get_runner_ports()
      with ssh_tunnel.RunnerTunnel(
          hostname=job_submission.job_provisioning_data.hostname,
          ssh_port=job_submission.job_provisioning_data.ssh_port,
          user=job_submission.job_provisioning_data.username,
          ports=ports,
          id_rsa=server_ssh_private_key,
      ):
          runner_client = client.RunnerClient(
              port=ports[client.REMOTE_RUNNER_PORT]
          )
          logger.debug(
              "Stopping runner %s",
              job_submission.job_provisioning_data.hostname,
          )
          runner_client.stop()
  
imports: import asyncio
  import datetime
  import socket
  from datetime import timezone
  from typing import Dict, List, Optional
  from sqlalchemy import update
  from sqlalchemy.ext.asyncio import AsyncSession
  from dstack._internal.core.errors import SSHError
  from dstack._internal.core.models.configurations import ConfigurationType
  from dstack._internal.core.models.runs import Job, JobErrorCode, JobProvisioningData, JobSpec, JobStatus, JobSubmission, RunSpec
  from dstack._internal.core.services.ssh import tunnel
  from dstack._internal.server.models import JobModel, ProjectModel
  from dstack._internal.server.services.backends import get_project_backend_by_type
  from dstack._internal.server.services.jobs.configurators.base import JobConfigurator
  from dstack._internal.server.services.jobs.configurators.dev import DevEnvironmentJobConfigurator
  from dstack._internal.server.services.jobs.configurators.service import ServiceJobConfigurator
  from dstack._internal.server.services.jobs.configurators.task import TaskJobConfigurator
  from dstack._internal.server.services.logging import job_log
  from dstack._internal.server.services.runner import client
  from dstack._internal.server.utils.common import run_async
  from dstack._internal.utils.common import get_current_datetime
  from dstack._internal.utils.logging import get_logger
label_desc: Use image node_id 7 for calling a global function with example usage: _stop_runner(job_submission, server_ssh_private_key) without return types