def METHOD_NAME(self, datapoint: Any, **kwargs):
    # Featurize str data
    if isinstance(datapoint, (str, np.str_)):
        return self._featurize_string(datapoint)
    # Featurize mol data
    else:
        return self._featurize_mol(datapoint)