class_docstr: Represents a vocabulary that can be built from a dataset.
docstr: The index of the end-of-sequence token.
docstr_tok: ["The","index","of","the","end-of-sequence","token","."]
code: def eos_idx(self):
      """The index of the end-of-sequence token."""
      return self.vocab[self.eos_token]
  
file_path: flax/examples/sst2/vocabulary.py
imports: import collections
  from typing import Iterable, Optional, Sequence
  from absl import logging
label_desc: Use image node_id 10 for calling the Vocabulary obj's underlying member method code with example usage: obj.eos_idx() and returns: self