code: def configure(self, pool_config: PoolConfig):
      assert self.name == pool_config.name
      assert self.cloud == pool_config.cloud
      assert self.worker_type == pool_config.worker_type
  
      self.worker_cores = pool_config.worker_cores
      self.worker_local_ssd_data_disk = (
          pool_config.worker_local_ssd_data_disk
      )
      self.worker_external_ssd_data_disk_size_gb = (
          pool_config.worker_external_ssd_data_disk_size_gb
      )
      self.standing_worker_cores = pool_config.standing_worker_cores
      self.boot_disk_size_gb = pool_config.boot_disk_size_gb
      self.data_disk_size_gb = pool_config.data_disk_size_gb
      self.data_disk_size_standing_gb = (
          pool_config.data_disk_size_standing_gb
      )
      self.min_instances = pool_config.min_instances
      self.max_instances = pool_config.max_instances
      self.max_live_instances = pool_config.max_live_instances
      self.preemptible = pool_config.preemptible
      self.max_new_instances_per_autoscaler_loop = (
          pool_config.max_new_instances_per_autoscaler_loop
      )
      self.autoscaler_loop_period_secs = (
          pool_config.autoscaler_loop_period_secs
      )
      self.standing_worker_max_idle_time_secs = (
          pool_config.standing_worker_max_idle_time_secs
      )
      self.worker_max_idle_time_secs = (
          pool_config.worker_max_idle_time_secs
      )
      self.job_queue_scheduling_window_secs = (
          pool_config.job_queue_scheduling_window_secs
      )
  
imports: import asyncio
  import logging
  import random
  from collections import defaultdict
  from typing import Dict, List, Optional, Tuple
  import prometheus_client
  import sortedcontainers
  from gear import Database
  from hailtop import aiotools
  from hailtop.utils import AsyncWorkerPool, Notice, WaitableSharedPool, periodically_call_with_dynamic_sleep, retry_long_running, run_if_changed, secret_alnum_string, time_msecs
  from ...batch_format_version import BatchFormatVersion
  from ...globals import INSTANCE_VERSION
  from ...inst_coll_config import PoolConfig
  from ...utils import ExceededSharesCounter, regions_bits_rep_to_regions
  from ..instance import Instance
  from ..job import mark_job_errored, schedule_job
  from ..resource_manager import CloudResourceManager
  from .base import InstanceCollection, InstanceCollectionManager
label_desc: Use image node_id 5 for calling the Pool obj's underlying member method code with example usage: obj.configure(pool_config) without return types