code: def __init__(self, smiles_list):
      self.vocab = smiles_list
      self.vmap = {x: i for i, x in enumerate(self.vocab)}
      self.slots = [get_slots(smiles) for smiles in self.vocab]
  
file_path: dgl/examples/pytorch/jtnn/jtnn/mol_tree.py
imports: import copy
  import rdkit.Chem
label_desc: Use image node_id 1 to create a new Vocab object from inherited base classes: object with example: obj = Vocab(smiles_list)