code: def load_or_create_vocab(data: str, vocab_path: Optional[str], num_words: int, word_min_count: int,
                           pad_to_multiple_of: Optional[int] = None) -> Vocab:
      
      if vocab_path is None:
          return build_from_paths(paths=[data], num_words=num_words, min_count=word_min_count,
                                  pad_to_multiple_of=pad_to_multiple_of)
      else:
          return vocab_from_json(vocab_path)
docs: If the vocabulary path is defined, the vocabulary is loaded from the path.
      Otherwise, it is built from the data file. No writing to disk occurs.