def METHOD_NAME(vm, fio_params, metadata):
  """Run fio.
  Args:
    vm: Virtual machine to run fio on.
    fio_params: fio parameters used to create the fio command to run.
    metadata: Metadata to add to the results.
  Returns:
    A list of sample.Sample objects
  """
  stdout, _ = vm.RemoteCommand('sudo {0} {1}'.format(fio.GetFioExec(),
                                                     fio_params))
  job_file_contents = fio.FioParametersToJob(fio_params)
  samples = fio.ParseResults(
      job_file_contents,
      json.loads(stdout),
      base_metadata=metadata,
      skip_latency_individual_stats=True)
  return samples