def METHOD_NAME():
    class Transformer:
        def fit(self):
            return "fit"
        def transform(self):
            return "transform"
    transformer = Transformer()
    def correct_transformer():
        return transformer
    validated_transformer = _validate_user_code_output(correct_transformer)
    assert transformer == validated_transformer
    class InCorrectFitTransformer:
        def pick(self):
            return "pick"
        def transform(self):
            return "transform"
    in_correct_fit_transformer = InCorrectFitTransformer()
    def incorrect__fit_transformer():
        return in_correct_fit_transformer
    with pytest.raises(
        MlflowException,
        match="The transformer provided doesn't have a fit method.",
    ):
        validated_transformer = _validate_user_code_output(incorrect__fit_transformer)
    class InCorrectTransformer:
        def pick(self):
            return "pick"
        def fit(self):
            return "fit"
    inCorrectTransformer = InCorrectTransformer()
    def incorrect_transformer():
        return inCorrectTransformer
    with pytest.raises(
        MlflowException,
        match="The transformer provided doesn't have a transform method.",
    ):
        validated_transformer = _validate_user_code_output(incorrect_transformer)