def get_metrics_names(metrics):
    'Gets the names of the metrics.\n\n    Args:\n        metrics: Dict keyed by client id. Each element is a dict of metrics\n            for that client in the specified round. The dicts for all clients\n            are expected to have the same set of keys.'
    if (len(metrics) == 0):
        return []
    metrics_dict = next(iter(metrics.values()))
    return list(metrics_dict.keys())
Gets the names of the metrics.

Args:
    metrics: Dict keyed by client id. Each element is a dict of metrics
        for that client in the specified round. The dicts for all clients
        are expected to have the same set of keys.
def get_metrics_names(metrics):
    'Gets the names of the metrics.\n\n    Args:\n        metrics: Dict keyed by client id. Each element is a dict of metrics\n            for that client in the specified round. The dicts for all clients\n            are expected to have the same set of keys.'
    if (len(metrics) == 0):
        return []
    metrics_dict = next(iter(metrics.values()))
    return list(metrics_dict.keys())