def _isRunMaskDuplicate(run, lumis, runLumis):
    """
    Test whether run and lumi is a subset of one of the
    runLumi pairs in runLumis
    :param run: integer run number
    :param lumi: set of lumis
    :param runLumis: list of dictionaries containing run and lumis
    """
    for runLumi in runLumis:
        if run == runLumi['run_number']:
            if lumis.issubset(runLumi['lumis']):
                return True
    return False