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: Calculate either smiles string or pass through raw molecule.
  
  Parameters
  ----------
  datapoint: rdkit.Chem.rdchem.Mol
      RDKit Mol object
  
  Returns
  -------
  str or rdkit.Chem.rdchem.Mol
      SMILES string or RDKit Mol object.
docstr_tok: ["Calculate","either","smiles","string","or","pass","through","raw","molecule",".","Parameters","--","--","--","--","--","datapoint",":","rdkit.Chem.rdchem.Mol","RDKit","Mol","object","Returns","--","--","--","-","str","or","rdkit.Chem.rdchem.Mol","SMILES","string","or","RDKit","Mol","object","."]
code: def _featurize(
      self, datapoint: RDKitMol, **kwargs
  ) -> Union[str, RDKitMol]:
      """Calculate either smiles string or pass through raw molecule.
  
      Parameters
      ----------
      datapoint: rdkit.Chem.rdchem.Mol
          RDKit Mol object
  
      Returns
      -------
      str or rdkit.Chem.rdchem.Mol
          SMILES string or RDKit Mol object.
  
      """
      try:
          from rdkit import Chem
      except ModuleNotFoundError:
          raise ImportError(
              "This class requires RDKit to be installed."
          )
      if "mol" in kwargs:
          datapoint = kwargs.get("mol")
          raise DeprecationWarning(
              'Mol is being phased out as a parameter, please pass "datapoint" instead.'
          )
  
      if self.smiles:
          return Chem.MolToSmiles(datapoint)
      else:
          return datapoint
  
imports: from typing import Union
  from deepchem.utils.typing import RDKitMol
  from deepchem.feat.base_classes import MolecularFeaturizer
label_desc: Use image node_id 2 for calling the RawFeaturizer obj's underlying member method code with example usage: obj._featurize(datapoint) and returns: Chem, datapoint