def METHOD_NAME(
    x, y, xlabel, ylabel, yunits=None, cols=1, rows=1, ylabel_title=True, to_file=None
):
    """Make a grid of dynamic plots, where the x-axices are time.
    Args:
        x: time set or list of time values
        y: list of lists of y values for plots.  The y value lists can be
            time-indexed pyo components or time slices
        xlabel: time axis label
        ylable: list of y-axis labels
        yunits: list of y-axis units, if units are provided, the y-values will
            be converted to the requested units for plotting
        cols: number of columns in plot grid
        rows: number of rows in plot grid
        ylabel_title: If True, use the ylabel for the plot title, otherwise label
            the y-axis
    Returns:
        matplotlib.pyplot
    """
    y_list = []
    if isinstance(x, pyo.Component):
        time = dynamic_value_list(x)
    else:
        time = x
    for i, yi in enumerate(y):
        if isinstance(yi, (pyo.Var, pyo.Expression, IndexedComponent_slice)):
            if yunits is not None:
                y_list.append(dynamic_value_list(yi, units=yunits[i]))
            else:
                y_list.append(dynamic_value_list(yi))
        else:
            y_list.append(yi)
    return plot_grid(
        x=time,
        y=y_list,
        xlabel=xlabel,
        ylabel=ylabel,
        cols=cols,
        rows=rows,
        same_x=True,
        ylabel_title=ylabel_title,
        to_file=to_file,
    )