class_docstr: Encodes a molecule as a SMILES string or RDKit mol.
  
  This featurizer can be useful when you're trying to transform a large
  collection of RDKit mol objects as Smiles strings, or alternatively as a
  "no-op" featurizer in your molecular pipeline.
  
  Note
  ----
  This class requires RDKit to be installed.
docstr: Initialize this featurizer.
  
  Parameters
  ----------
  smiles: bool, optional (default False)
      If True, encode this molecule as a SMILES string. Else as a RDKit mol.
docstr_tok: ["Initialize","this","featurizer",".","Parameters","--","--","--","--","--","smiles",":","bool",",","optional","(","default","False",")","If","True",",","encode","this","molecule","as","a","SMILES","string",".","Else","as","a","RDKit","mol","."]
code: def __init__(self, smiles: bool = False):
      """Initialize this featurizer.
  
      Parameters
      ----------
      smiles: bool, optional (default False)
          If True, encode this molecule as a SMILES string. Else as a RDKit mol.
  
      """
      self.smiles = smiles
  
imports: from typing import Union
  from deepchem.utils.typing import RDKitMol
  from deepchem.feat.base_classes import MolecularFeaturizer
label_desc: Use image node_id 1 to create a new RawFeaturizer object from inherited base classes: MolecularFeaturizer with example: obj = RawFeaturizer(smiles)