def get_eval_metric_values(events):
    """Filter TensorBoard events to only include those for eval metrics.

  Args:
    events: dict of list of (step, value) tuples where keys are tags.

  Returns:
    Dict where key is task_name/metric_name and value is (step, value) tuple.
  """
    eval_values = {}
    for tag, event_values in events.items():
        if tag.startswith('eval'):
            _, task_name, metric_name = tag.split('/')
            eval_values['{}/{}'.format(task_name, metric_name)] = event_values
    return eval_values
