code: def gcp_machine_type_to_worker_type_and_cores(
      machine_type: str,
  ) -> Tuple[str, int]:
      # FIXME: "WORKER TYPE" IS WRONG OR CONFUSING WHEN THE MACHINE TYPE IS NOT n1!
      maybe_machine_type_parts = gcp_machine_type_to_parts(machine_type)
      if maybe_machine_type_parts is None:
          raise ValueError(f"bad machine_type: {machine_type}")
      return (
          maybe_machine_type_parts.worker_type,
          maybe_machine_type_parts.cores,
      )
  
file_path: hail/batch/batch/cloud/gcp/resource_utils.py
imports: import logging
  import re
  from typing import Optional, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: gcp_machine_type_to_worker_type_and_cores(machine_type) and returns: maybe_machine_type_parts,  maybe_machine_type_parts