def METHOD_NAME(config, schedulers):
    """Verify that the scheduler entries are valid."""
    for scheduler in schedulers:
        if scheduler not in PCLUSTER_SCHEDULERS:
            error = f"Invalid scheduler ({scheduler}) found in config."
            logging.error(error)
            raise AssertionError(error)