def METHOD_NAME(metadata, output, samples):
  """Appends average Steal Time %'s to the samples list.
  Sample data e.g.
  ...
  Linux 4.4.0-1083-aws (ip-10-0-0-217)   05/21/2019   _x86_64_  (8 CPU)
  12:12:36 AM     CPU     %user     %nice   %system   %iowait    %steal    %idle
  12:17:17 AM     all     18.09      0.00      0.00      0.00     81.91     0.00
  12:17:22 AM     all     21.96      0.00      0.00      0.00     78.04     0.00
  12:17:27 AM     all     36.47      0.00      0.00      0.00     63.53     0.00
  Average:        all     33.73      0.00      0.00      0.00     66.27     0.00
  Args:
    metadata: metadata of the sample.
    output: the output of the stress-ng benchmark.
    samples: list of samples to return.
  """
  output_lines = output.splitlines()
  for line in output_lines:
    line_split = line.split()
    if not line_split:
      continue
    if line_split[0] == 'Linux':
      continue
    if line_split[-2] == '%steal':
      continue
    if line_split[0] == 'Average:':
      metric = 'average_steal'
    else:
      metric = 'steal'
    value = float(line_split[-2])  # parse %steal time
    my_metadata = {'user_percent': float(line_split[3])}
    my_metadata.update(metadata)
    samples.append(
        sample.Sample(
            metric=metric, value=value, unit='%', metadata=my_metadata))