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 create(constraint_tensor: torch.Tensor):
      constraint_list = unpack_constraints(constraint_tensor)
      return OrderedConstraintState(
          ConstraintSequence(constraint_list), -1
      )
  
imports: from collections import Counter
  from typing import List, Optional, Set, Tuple
  import torch
label_desc: Use image node_id 2 for calling the OrderedConstraintState obj's underlying member method code with example usage: obj.create(constraint_tensor) and returns: OrderedConstraintState