code: def __len__(self):
      return len(self.vocab_lst)
  
file_path: dgl/examples/pytorch/transformer/dataset/fields.py
label_desc: Use image node_id 3 for calling the Vocab obj's underlying member method code with example usage: obj.__len__() and returns: len