def _convert_labels_dict_to_list(parent):
    """Covert "labels" from dictionary into list of "name", "value" pairs.

    This makes the resulting BigQuery schema more consistent when the json
    object has arbitrary user supplied fields.

    Args:
        parent: dict object.
    Returns:
        The modified dict object.

    """
    labels_dict = parent['labels']
    labels_list = [{'name': key, 'value': val}
                   for (key, val) in labels_dict.items()]
    parent['labels'] = labels_list
    return parent