def METHOD_NAME(self, X, y=None):
    if self.operator is None:
        raise ValueError("The pipeline object can't be None at the time of fit.")
    if isinstance(X, list):
        raise ValueError(
            """Relational operator's fit does not accept data before join and aggregates.