def METHOD_NAME(sweep_table):
    height_ratios = []
    width_ratios = [1,4,4]
    for _, sweep_set_table in sweep_table.groupby("stimulus_code"):
        height_ratios.append(len(sweep_set_table.index))
    return height_ratios, width_ratios