def METHOD_NAME(bm_spec: _BenchmarkSpec):
  """Runs memtier against memcached and gathers the results.
  Args:
    bm_spec: The benchmark specification. Contains all data that is
        required to run the benchmark.
  Returns:
    A list of sample.Sample instances.
  """
  client = bm_spec.vm_groups['clients'][0]
  server_ip = bm_spec.container_cluster.GetPodIpsByLabel('app', 'memcached')[0]
  metadata = {
      'memcached_server_size': FLAGS.memcached_size_mb,
      'memcached_server_threads': FLAGS.memcached_num_threads
  }
  samples = memtier.RunOverAllThreadsPipelinesAndClients(
      [client], server_ip, [memcached_port])
  for sample in samples:
    sample.metadata.update(metadata)
  return samples