code: def _setup_instance(
      hostname: str,
      ssh_private_key: str,
      user_ssh_public_key: str,
  ):
      # Lambda API allows specifying only one ssh key,
      # so we have to update authorized_keys manually to add the user key
      setup_commands = (
          f"echo '{user_ssh_public_key}' >> /home/ubuntu/.ssh/authorized_keys && "
          "mkdir /home/ubuntu/.dstack && "
          "sudo apt-get update && "
          "sudo apt-get install -y --no-install-recommends nvidia-docker2 && "
          "sudo pkill -SIGHUP dockerd"
      )
      _run_ssh_command(
          hostname=hostname,
          ssh_private_key=ssh_private_key,
          command=setup_commands,
      )
  
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 8 for calling a global function with example usage: _setup_instance(hostname, ssh_private_key, user_ssh_public_key) without return types