def preprocessed_test_metrics(expected_metrics):
    """function that creates a single file with metrics
    that need to be tested in different files

    In:
    expected_metrics:
        List[ Tuple[FileName, Dict[Metric1: Value1, Metric2: Value2, ...], ...] ]

    Out:
    res:
        List[ Tuple[FileName, Metric1, Value1], ... ]

    """

    res = []
    for a, b in expected_metrics:
        for c, d in b.items():
            res.append((a, c, d))
    return res