def METHOD_NAME(
    product_versions: ProductVersions,
    machine_type: str,
    preemptible: bool,
    local_ssd_data_disk: bool,
    data_disk_size_gb: int,
    boot_disk_size_gb: int,
    job_private: bool,
    location: str,
) -> 'AzureSlimInstanceConfig':
    if local_ssd_data_disk:
        data_disk_resource = None
    else:
        data_disk_resource = AzureStaticSizedDiskResource.METHOD_NAME(product_versions, 'P', data_disk_size_gb, location)
    resources: List[AzureResource] = filter_none(
        [
            AzureVMResource.METHOD_NAME(product_versions, machine_type, preemptible, location),
            AzureStaticSizedDiskResource.METHOD_NAME(product_versions, 'E', boot_disk_size_gb, location),
            data_disk_resource,
            AzureDynamicSizedDiskResource.METHOD_NAME(product_versions, 'P', location),
            AzureIPFeeResource.METHOD_NAME(product_versions, 1024),
            AzureServiceFeeResource.METHOD_NAME(product_versions),
        ]
    )
    return AzureSlimInstanceConfig(
        machine_type=machine_type,
        preemptible=preemptible,
        local_ssd_data_disk=local_ssd_data_disk,
        data_disk_size_gb=data_disk_size_gb,
        boot_disk_size_gb=boot_disk_size_gb,
        job_private=job_private,
        resources=resources,
    )