def labels_name(labels):
    """Returns a comma-separate list of label names
    Args: labels: list of label objects.
    Returns: string with comma-separated labels names.
    """
    if type(labels) is list:
        return ','.join([ l['name'] for l in labels ])
    else:
        return labels['name']