class_docstr: Represents a vocabulary that can be built from a dataset.
docstr: Saves the vocabulary to disk.
docstr_tok: ["Saves","the","vocabulary","to","disk","."]
code: def save(self, path: str) -> None:
      """Saves the vocabulary to disk."""
      with open(path, "wb") as f:
          for token in self.vocab:
              assert isinstance(token, bytes), "Expected byte tokens."
              f.write(token + b"\n")
      logging.info("Saved vocabulary to %s.", path)
  
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 12 for calling the Vocabulary obj's underlying member method code with example usage: obj.save(path) without return types