code: def __init__(
      self,
      token2id: Dict = None,
      add_unk: bool = True,
      unk_token: str = "<UNK>",
  ):
      if token2id is None:
          token2id = {}
  
      self._token2id: Dict = token2id
      self._id2token = {
          idx: token for token, idx in self._token2id.items()
      }
  
      self._add_unk: bool = add_unk
      self._unk_token: str = unk_token
      self.unk_index: int = -1
      if add_unk:
          self.unk_index = self.add_token(unk_token)
  
imports: from typing import Dict
label_desc: Use image node_id 1 to create a new Vocabulary object  with example: obj = Vocabulary(token2id, add_unk, unk_token)