code: def update_vocab(
      self,
      ent_vocab,
      rel_vocab,
      text_vocab,
      ent_text_vocab,
      title_vocab,
  ):
      ent_vocab.update(self.raw_ent_type)
      ent_text_vocab.update(self.raw_ent_text)
      title_vocab.update(self.raw_title)
      rel_vocab.update(
          ["--root--"]
          + [x[1] for x in self.raw_rel]
          + [x[1] + "_INV" for x in self.raw_rel]
      )
      text_vocab.update(self.raw_ent_type)
      text_vocab.update(self.raw_text)
  
imports: import json
  import pickle
  import random
  import dgl
  import numpy
  import torch
label_desc: Use image node_id 7 for calling the Example obj's underlying member method code with example usage: obj.update_vocab(ent_vocab, rel_vocab, text_vocab, ent_text_vocab, title_vocab) without return types