def match_dataset(dataset):
    """Matcher that requires supplied dataset parameter to match."""
    def matcher(request):
        return request.json().get('dataset') == str(dataset)
    return matcher