class_docstr: Create Transformers for Datasets.
  
  When loading molnet datasets, you cannot directly pass in Transformers
  to use because many Transformers require the Dataset they will be applied to
  as a constructor argument.  Instead you pass in TransformerGenerator objects
  which can create the Transformers once the Dataset is loaded.
class_docstr_tok: ["Create","Transformers","for","Datasets",".","When","loading","molnet","datasets",",","you","can","not","directly","pass","in","Transformers","to","use","because","many","Transformers","require","the","Dataset","they","will","be","applied","to","as","a","constructor","argument",".","Instead","you","pass","in","TransformerGenerator","objects","which","can","create","the","Transformers","once","the","Dataset","is","loaded","."]
docstr: Construct an object for creating Transformers.
  
  Parameters
  ----------
  transformer_class: Type[Transformer]
      the class of Transformer to create
  kwargs:
      any additional arguments are passed to the Transformer's constructor
docstr_tok: ["Construct","an","object","for","creating","Transformers",".","Parameters","--","--","--","--","--","transformer_class",":","Type","[","Transformer","]","the","class","of","Transformer","to","create","kwargs",":","any","additional","arguments","are","passed","to","the","Transformer","'s","constructor"]
code: def __init__(
      self, transformer_class: Type[dc.trans.Transformer], **kwargs
  ):
      """Construct an object for creating Transformers.
  
      Parameters
      ----------
      transformer_class: Type[Transformer]
          the class of Transformer to create
      kwargs:
          any additional arguments are passed to the Transformer's constructor
      """
      self.transformer_class = transformer_class
      self.kwargs = kwargs
  
file_path: deepchem/deepchem/molnet/load_function/molnet_loader.py
imports: import os
  import logging
  import deepchem
  from deepchem.data import Dataset, DiskDataset
  from typing import List, Optional, Tuple, Type, Union
label_desc: Use image node_id 1 to create a new TransformerGenerator object from inherited base classes: object with example: obj = TransformerGenerator(transformer_class)