code: def __init__(
      self,
      max_vocab=2**31,
      min_freq=-1,
      sp=["<PAD>", "<BOS>", "<EOS>", "<UNK>"],
  ):
      self.i2s = []
      self.s2i = {}
      self.wf = {}
      self.max_vocab, self.min_freq, self.sp = max_vocab, min_freq, sp
  
imports: import json
  import pickle
  import random
  import dgl
  import numpy
  import torch
label_desc: Use image node_id 1 to create a new Vocab object from inherited base classes: object with example: obj = Vocab(max_vocab, min_freq, sp)