code: def gcp_machine_type_to_parts(
      machine_type: str,
  ) -> Optional[MachineTypeParts]:
      match = MACHINE_TYPE_REGEX.fullmatch(machine_type)
      if match is None:
          return match
      return MachineTypeParts.from_dict(match.groupdict())
  
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 1 for calling a global function with example usage: gcp_machine_type_to_parts(machine_type) and returns: MachineTypeParts, match