def METHOD_NAME(benchmark_spec):
  """Run the IOR benchmark on the vms.
  Args:
    benchmark_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
  Returns:
    A list of sample.Sample objects.
  """
  master_vm = benchmark_spec.vms[0]
  results = []
  # Run IOR benchmark.
  if FLAGS.ior_num_procs and FLAGS.ior_script:
    remote_script_path = posixpath.join(master_vm.scratch_disks[0].mount_point,
                                        FLAGS.ior_script)
    master_vm.PushDataFile(
        FLAGS.ior_script,
        remote_script_path,
        # SCP directly to SMB returns an error, so first copy to disk.
        should_double_copy=(FLAGS.data_disk_type == disk.SMB))
    results += ior.RunIOR(master_vm, FLAGS.ior_num_procs, remote_script_path)
  # Run mdtest benchmark.
  phase_args = ('-C', '-T', '-r') if FLAGS.mdtest_drop_caches else ('-C -T -r',)
  mdtest_args = (' '.join(args) for args in
                 itertools.product(FLAGS.mdtest_args, phase_args))
  for args in mdtest_args:
    results += ior.RunMdtest(master_vm, FLAGS.mdtest_num_procs, args)
    if FLAGS.mdtest_drop_caches:
      background_tasks.RunThreaded(
          lambda vm: vm.DropCaches(), benchmark_spec.vms
      )
  return results