def METHOD_NAME(identifier, title, validations, layout=0):
    plots = []
    for validation in validations:
        valiplots = [validation.path+plot for plot in validation.plots
                     if re.search(identifier, plot)]
        valiplots.sort(key=plotSortKey)
        plots.append(valiplots)
    if sum(len(p) for p in plots) == 0:
        print('Warning: no plots matching ' + identifier)
        return ''
    # Create layout, if not given.
    if layout == 0:
        layout = PageLayout()
        layout.fit(plots)
    return writePage([p for vali in plots for p in vali], title, layout)