code: def build(self):
      self.i2s.extend(self.sp)
      sort_kv = sorted(
          self.wf.items(), key=lambda x: x[1], reverse=True
      )
      for k, v in sort_kv:
          if (
              len(self.i2s) < self.max_vocab
              and v >= self.min_freq
              and k not in self.sp
          ):
              self.i2s.append(k)
      self.s2i.update(list(zip(self.i2s, range(len(self.i2s)))))
  
imports: import json
  import pickle
  import random
  import dgl
  import numpy
  import torch
label_desc: Use image node_id 5 for calling the Vocab obj's underlying member method code with example usage: obj.build() without return types