def METHOD_NAME(bm_spec: benchmark_spec.BenchmarkSpec) -> List[sample.Sample]:
  """Runs MLPerf Inference on the cluster.
  Args:
    bm_spec: The benchmark specification. Contains all data that is required to
      run the benchmark.
  Returns:
    A list of sample.Sample objects.
  """
  vm = bm_spec.vms[0]
  vm.RemoteCommand(f'{bm_spec.cm} rm cache -f')
  stdout = _SearchQps(bm_spec)
  metadata = {
      'implementation': _IMPLEMENTATION.value,
      'model': _MODEL.value,
      'backend': _BACKEND.value,
      'device': _DEVICE.value,
      'scenario': FLAGS.mlperf_inference_scenarios,
      'mode': _MODE.value,
      'category': _CATEGORY.value,
  }
  return [MakeSamplesFromOutput(metadata, stdout)]