code: def from_dict(data: dict) -> "MachineTypeParts":
      return MachineTypeParts(
          data["machine_family"],
          data["machine_type"],
          int(data["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 1 for calling the MachineTypeParts obj's underlying member method code with example usage: obj.from_dict(data) and returns: MachineTypeParts