def transform_table(table):
    """
    Unsqueeze keys aligning with values

    Args:
        table: table defining key-value pairs

    Returns:
        - unsqueezed key-value dict
    """
    keys, values = [], []
    for sample in table:
        ks, vs = [], []
        for k, vals in sample.items():
            ks.extend([k for _ in vals])
            vs.extend(vals)
        keys.append(ks)
        values.append(vs)
    return {'key': keys, 'value': values}