def get_label(timestamp, commercials):
    """Given a timestamp and the commercials list, return if
    this frame is a commercial or not. If not, return label."""
    for com in commercials['commercials']:
        if com['start'] <= timestamp <= com['end']:
            return 'ad'
    return commercials['class']