def METHOD_NAME(self, X):
    # exog must be a pd.DataFrame, and the column_name must be a timestamp
    if not isinstance(X, pd.DataFrame):
        raise TypeError(
            f"X must be a DataFrame to use the DateFeaturizer, but got "
            f"type={type(X)}"
        )
    name = self.column_name
    if not (name in X.columns and
            'datetime64' in X[name].dtype.name):
        raise ValueError("column '%s' must exist in exog as a "
                         "pd.Timestamp type"
                         % name)