def METHOD_NAME(self, X, y):
    """Fits the target encoder.
    Args:
        X (pd.DataFrame): The input training data of shape [n_samples, n_features].
        y (pd.Series, optional): The target training data of length [n_samples].
    Returns:
        self
    """
    return super().METHOD_NAME(X, y)