code: def _get_offers_with_availability(
      self, offers: List[InstanceOffer]
  ) -> List[InstanceOfferWithAvailability]:
      instance_availability = {
          instance_name: [
              region["name"]
              for region in details["regions_with_capacity_available"]
          ]
          for instance_name, details in self.api_client.list_instance_types().items()
      }
      availability_offers = []
      for offer in offers:
          if offer.region not in self.config.regions:
              continue
          availability = InstanceAvailability.NOT_AVAILABLE
          if offer.region in instance_availability.get(
              offer.instance.name, []
          ):
              availability = InstanceAvailability.AVAILABLE
          availability_offers.append(
              InstanceOfferWithAvailability(
                  **offer.dict(), availability=availability
              )
          )
      return availability_offers
  
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 5 for calling the LambdaCompute obj's underlying member method code with example usage: obj._get_offers_with_availability(offers) and returns: availability_offers