code: def _upload_config(
      hostname: str,
      ssh_private_key: str,
      config: _ShimConfig,
  ):
      with tempfile.NamedTemporaryFile("w+", 0o600) as f:
          f.write(config.json())
          f.flush()
          _run_scp_command(
              hostname=hostname,
              ssh_private_key=ssh_private_key,
              source=f.name,
              target=_SHIM_CONFIG_FILEPATH,
          )
  
imports: import hashlib
  import subprocess
  import tempfile
  import time
  from threading import Thread
  from typing import Dict, List, Optional, Tuple
  from pydantic import BaseModel
  from dstack._internal.core.backends.base.compute import Compute, get_instance_name, get_shim_commands
  from dstack._internal.core.backends.base.offers import get_catalog_offers
  from dstack._internal.core.backends.lambdalabs.api_client import LambdaAPIClient
  from dstack._internal.core.backends.lambdalabs.config import LambdaConfig
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.core.models.instances import InstanceAvailability, InstanceOffer, InstanceOfferWithAvailability, LaunchedInstanceInfo
  from dstack._internal.core.models.runs import Job, Requirements, Run
label_desc: Use image node_id 10 for calling a global function with example usage: _upload_config(hostname, ssh_private_key, config) without return types