code: def to_dict(self) -> dict:
      return {
          "version": AZURE_INSTANCE_CONFIG_VERSION,
          "cloud": "azure",
          "machine_type": self._machine_type,
          "preemptible": self.preemptible,
          "local_ssd_data_disk": self.local_ssd_data_disk,
          "data_disk_size_gb": self.data_disk_size_gb,
          "boot_disk_size_gb": self.boot_disk_size_gb,
          "job_private": self.job_private,
          "resources": [
              resource.to_dict() for resource in self.resources
          ],
      }
  
file_path: hail/batch/batch/cloud/azure/instance_config.py
imports: from typing import List
  from hailtop.utils import filter_none
  from ...driver.billing_manager import ProductVersions
  from ...instance_config import InstanceConfig
  from .resource_utils import azure_machine_type_to_worker_type_and_cores
  from .resources import AzureDynamicSizedDiskResource, AzureIPFeeResource, AzureResource, AzureServiceFeeResource, AzureStaticSizedDiskResource, AzureVMResource, azure_resource_from_dict
label_desc: Use image node_id 6 for calling the AzureSlimInstanceConfig obj's underlying member method code with example usage: obj.to_dict() and returns: dict