def get_list_of_tasks(task, class_names):
    """
    Get the tasks for this segmentation
    Parameters:
    -----------
    task:            list
        list of chosen segmentation task

    class_names:     list
        list of class names
        first entry: podocytes
        second entry: glomerulus

    Return:
    -------
    list of tasks

    """
    # prefix for data and images
    if task == 'glomerulus':
        task_list = []
        task_list.append(class_names[0])
    elif task == 'podocytes':
        task_list = []
        task_list.append(class_names[1])
    elif task == 'all':
        task_list = class_names
    else:
        raise ValueError('task value does not match to the expected value', task)

    return task_list