def __init__(self, rulename: str, idx: int, batches: int):
    assert (idx <= batches)
    assert (idx > 0)
    self.rulename = rulename
    self.idx = idx
    self.batches = batches
def __init__(self, rulename: str, idx: int, batches: int):
    assert (idx <= batches)
    assert (idx > 0)
    self.rulename = rulename
    self.idx = idx
    self.batches = batches