code: def get_vocab_size(self):
      if hasattr(self, "share_vocab"):
          return self.share_vocab.vocab_size
      else:
          return (
              self.in_word_vocab.vocab_size
              + self.out_word_vocab.vocab_size
          )
  
imports: from operator import itemgetter
  import numpy
label_desc: Use image node_id 2 for calling the VocabForAll obj's underlying member method code with example usage: obj.get_vocab_size() and returns: self, unknown