code: def __init__(self, config: VastAIConfig):
      self.config = config
      self.api_client = VastAIAPIClient(config.creds.api_key)
      self.catalog = gpuhunt.Catalog(
          balance_resources=False, auto_reload=False
      )
      self.catalog.add_provider(
          VastAIProvider(
              extra_filters={
                  "direct_port_count": {"gte": 1},
                  "reliability2": {"gte": 0.9},
                  "inet_down": {"gt": 128},
                  "verified": {"eq": True},
                  "cuda_max_good": {"gte": 11.8},
                  "disk_space": {"gte": DISK_SIZE},
              }
          )
      )
  
imports: import time
  from typing import List, Optional
  import gpuhunt
  import requests
  from gpuhunt.providers.vastai import VastAIProvider
  from dstack._internal.core.backends.base import Compute
  from dstack._internal.core.backends.base.compute import get_docker_commands, get_instance_name
  from dstack._internal.core.backends.base.offers import get_catalog_offers
  from dstack._internal.core.backends.vastai.api_client import DISK_SIZE, VastAIAPIClient
  from dstack._internal.core.backends.vastai.config import VastAIConfig
  from dstack._internal.core.errors import ComputeError
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.core.models.instances import InstanceAvailability, InstanceOfferWithAvailability, 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 1 to create a new VastAICompute object from inherited base classes: Compute with example: obj = VastAICompute(config)