class_docstr: Represents a node in a trie managing unordered constraints.
class_docstr_tok: ["Represents","a","node","in","a","trie","managing","unordered","constraints","."]
docstr: Returns the set of tokens in constraints.
docstr_tok: ["Returns","the","set","of","tokens","in","constraints","."]
code: def tokens(self) -> Set[int]:
      """Returns the set of tokens in constraints."""
      return set(self.token_counts().keys())
  
imports: from collections import Counter
  from typing import List, Optional, Set, Tuple
  import torch
label_desc: Use image node_id 9 for calling the ConstraintNode obj's underlying member method code with example usage: obj.tokens() and returns: set