def filter_laps_by_driver(laps, drivers):
    """Filter lap time data to get only laps driven by the driver in `drivers`.

    Parameters
    ----------
    `laps` : dict
        Timings for each driver per lap as returned by `api.get_all_laps` data key
    `*drivers` : list
        A valid driver_id used by Ergast API

    Returns
    -------
    dict
        `laps` filtered to contain only a list of timings per lap for the specified drivers
    """
    if len(drivers) == 0:
        return laps
    else:
        result = {
            'data': {},
            'race': laps.get('race', ''),
            'season': laps.get('season', ''),
            'round': laps.get('round', '')
        }

        for lap, times in laps['data'].items():
            result['data'][lap] = [t for t in times if t['id'] in drivers]
        return result