is_fitted: Check if a preprocessing object is fitted
Description
Determine whether a preprocessing object has been fitted to data.
This is used internally to provide helpful error messages when
users try to transform data with an unfitted preprocessor.