code: def azure_worker_properties_to_machine_type(
      worker_type: str, cores: int, local_ssd_data_disk: bool
  ) -> str:
      if worker_type == "F":
          return f"Standard_F{cores}s_v2"
  
      if local_ssd_data_disk:
          additive_features = "ds"
      else:
          additive_features = "s"
  
      machine_type = (
          f"Standard_{worker_type}{cores}{additive_features}_v4"
      )
      return machine_type
  
imports: import logging
  import re
  from typing import Dict, Optional, Tuple
  import sortedcontainers
  from ...globals import RESERVED_STORAGE_GB_PER_CORE
label_desc: Use image node_id 4 for calling a global function with example usage: azure_worker_properties_to_machine_type(worker_type, cores, local_ssd_data_disk) and returns: machine_type, str, cores, str