class_docstr: Records progress through the set of linear nonbranching constraints with gaps.
class_docstr_tok: ["Records","progress","through","the","set","of","linear","nonbranching","constraints","with","gaps","."]
code: def __init__(self, sequence: ConstraintSequence, state: int = -1):
      self.sequence = sequence
      self.state = state
  
imports: from collections import Counter
  from typing import List, Optional, Set, Tuple
  import torch
label_desc: Use image node_id 1 to create a new OrderedConstraintState object from inherited base classes: ConstraintState with example: obj = OrderedConstraintState(sequence, state)