code: def test_raises_error_when_fitting_not_a_df(_not_a_df):
      transformer = DatetimeFeatures()
      # trying to fit not a df
      with pytest.raises(TypeError):
          transformer.fit(_not_a_df)
  
imports: import numpy
  import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from sklearn.pipeline import Pipeline
  from feature_engine.datetime import DatetimeFeatures
  from feature_engine.datetime._datetime_constants import FEATURES_DEFAULT, FEATURES_SUFFIXES, FEATURES_SUPPORTED
label_desc: Use image node_id 5 for calling a global function with example usage: test_raises_error_when_fitting_not_a_df(_not_a_df) without return types