code: def test_raises_error_when_init_parameters_not_permitted(df_cyclical):
      with pytest.raises(TypeError):
          # when max_values is not a dictionary
          CyclicalFeatures(max_values=("dayi", 31))
  
      with pytest.raises(ValueError):
          # when max_values values are not integers or string
          CyclicalFeatures(max_values={"day": "31"})
  
      with pytest.raises(ValueError):
          # when drop original is not a boolean
          CyclicalFeatures(drop_original="True")
  
file_path: feature_engine/tests/test_creation/test_cyclical_features.py
imports: import pandas
  import pytest
  from numpy import array
  from feature_engine.creation import CyclicalFeatures
label_desc: Use image node_id 7 for calling a global function with example usage: test_raises_error_when_init_parameters_not_permitted(df_cyclical) without return types