ColumnTransformer FunctionTransformer get_feature_names_out() does not work

### Describe the bug

When I use a FunctionTransformer in my ColumnTransformer and try to use the columntransformer.get_feature_names_out() function I get an error. Fitting/Predicting works fine as long as I dont touch this function.

Error message:


```pytb
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [7], in <cell line: 3>()
      1 xt = preprocessor.transform(X_test)
      2 #mapie.single_estimator_[1].estimator
----> 3 preprocessor.get_feature_names_out()

File ~\miniconda3\envs\Master_ML\lib\site-packages\sklearn\compose\_column_transformer.py:481, in ColumnTransformer.get_feature_names_out(self, input_features)
    479 transformer_with_feature_names_out = []
    480 for name, trans, column, _ in self._iter(fitted=True):
--> 481     feature_names_out = self._get_feature_name_out_for_transformer(
    482         name, trans, column, input_features
    483     )
    484     if feature_names_out is None:
    485         continue

File ~\miniconda3\envs\Master_ML\lib\site-packages\sklearn\compose\_column_transformer.py:446, in ColumnTransformer._get_feature_name_out_for_transformer(self, name, trans, column, feature_names_in)
    444 # An actual transformer
    445 if not hasattr(trans, "get_feature_names_out"):
--> 446     raise AttributeError(
    447         f"Transformer {name} (type {type(trans).__name__}) does "
    448         "not provide get_feature_names_out."
    449     )
    450 if isinstance(column, Iterable) and not all(
    451     isinstance(col, str) for col in column
    452 ):
    453     column = _safe_indexing(feature_names_in, column)

AttributeError: Transformer log (type FunctionTransformer) does not provide get_feature_names_out.
```

### Steps/Code to Reproduce

```
preprocessor = ColumnTransformer(
    transformers=
    [  
        ('log', FunctionTransformer(np.log1p, validate=True), log_features)
    ])

```
Fit on some estimator. Then print function:

```python
xt = preprocessor.transform(X_test)
preprocessor.get_feature_names_out()

```

Gets the error as described above

### Expected Results

Expected results are column names of cause.

### Actual Results

```pytb
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [7], in <cell line: 3>()
      1 xt = preprocessor.transform(X_test)
      2 #mapie.single_estimator_[1].estimator
----> 3 preprocessor.get_feature_names_out()

File ~\miniconda3\envs\Master_ML\lib\site-packages\sklearn\compose\_column_transformer.py:481, in ColumnTransformer.get_feature_names_out(self, input_features)
    479 transformer_with_feature_names_out = []
    480 for name, trans, column, _ in self._iter(fitted=True):
--> 481     feature_names_out = self._get_feature_name_out_for_transformer(
    482         name, trans, column, input_features
    483     )
    484     if feature_names_out is None:
    485         continue

File ~\miniconda3\envs\Master_ML\lib\site-packages\sklearn\compose\_column_transformer.py:446, in ColumnTransformer._get_feature_name_out_for_transformer(self, name, trans, column, feature_names_in)
    444 # An actual transformer
    445 if not hasattr(trans, "get_feature_names_out"):
--> 446     raise AttributeError(
    447         f"Transformer {name} (type {type(trans).__name__}) does "
    448         "not provide get_feature_names_out."
    449     )
    450 if isinstance(column, Iterable) and not all(
    451     isinstance(col, str) for col in column
    452 ):
    453     column = _safe_indexing(feature_names_in, column)

AttributeError: Transformer log (type FunctionTransformer) does not provide get_feature_names_out.
```

### Versions

```shell
scikit 1.0.2
```

COMMENT:
`get_feature_names_out` will be available in 1.1.
We are releasing the RC today indeed. You might want to give a try then.

Labels: Bug, Needs Triage