code: def __init__(self, port: int = GATEWAY_MANAGEMENT_PORT):
      self.base_url = f"http://localhost:{port}"
      self.s = requests.Session()
  
file_path: dstack/src/dstack/_internal/server/services/gateways/client.py
imports: import requests
  from dstack._internal.core.errors import GatewayError
  from dstack._internal.core.models.runs import Job, JobProvisioningData
label_desc: Use image node_id 1 to create a new GatewayClient object  with example: obj = GatewayClient(port)