def METHOD_NAME(
    vms: List[virtual_machine.BaseVirtualMachine]) -> List[sample.Sample]:
  """Measures the time it takes to resume a cluster of vms that were suspended.
  Args:
    vms: List of BaseVirtualMachine subclasses.
  Returns:
    List of samples containing the resume times of the vms, the cluster
    resume time(duration) and the time stamps when the resume was completed.
  """
  if not vms:
    return []
  before_resume_timestamp = time.time()
  # call resume function on the list of vms to get the resume times
  resume_durations = background_tasks.RunThreaded(lambda vm: vm.Resume(), vms)
  # get cluster resume time(duration)
  cluster_resume_time = time.time() - before_resume_timestamp
  # get samples for the cluster of vms
  return _GetVmOperationDataSamples(resume_durations, cluster_resume_time,
                                    'Resume', vms)