def check_who_queued(user):
    """
    Returns a function that checks if the song was requested by user
    """
    def pred(song):
        if song.requested_by and song.requested_by.id == user.id:
            return True

        return False

    return pred