def METHOD_NAME(raw_metrics):
    has_all_latencies = len(list(filter(lambda x: 'latencies' in x, raw_metrics)))
    if not has_all_latencies == len(raw_metrics):
        return None
    median_latencies = list(map(lambda x: np.median(x['latencies']), raw_metrics))
    return median_latencies