code: def get_dstack_gateway_commands() -> List[str]:
      build = get_dstack_runner_version()
      if build == "latest":
          raise ValueError(
              "`latest` is not appropriate version for a gateway"
          )
      return [
          "mkdir -p /home/ubuntu/dstack",
          "python3 -m venv /home/ubuntu/dstack/blue",
          "python3 -m venv /home/ubuntu/dstack/green",
          f"/home/ubuntu/dstack/blue/bin/pip install {get_dstack_gateway_wheel(build)}",
          "sudo /home/ubuntu/dstack/blue/bin/python -m dstack.gateway.systemd install --run",
      ]
  
imports: import os
  import re
  from abc import ABC, abstractmethod
  from typing import List, Optional
  import git
  import requests
  import yaml
  from dstack import version
  from dstack._internal import settings
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.core.models.instances import InstanceOfferWithAvailability, InstanceState, LaunchedGatewayInfo, LaunchedInstanceInfo
  from dstack._internal.core.models.runs import Job, Requirements, Run
  from dstack._internal.utils.logging import get_logger
label_desc: Use image node_id 12 for calling a global function with example usage: get_dstack_gateway_commands() and returns: list