import re


def is_image_set_grouped(pipeline):
    """
    Report if the pipeline will group image sets. Returns **True** if image sets will be grouped.
    
    * pipeline: a list where each item is a line from a CellProfiler `*.cppipe` file.
    """
    is_grouped_bool = False
    
    for line in pipeline:
        if re.match(r"^\s*Do you want to group your images\?:Yes$", line) is not None:
            is_grouped_bool = True
            
            break
            
    return is_grouped_bool