code: def test_max_values_mapping(df_cyclical):
      cyclical = CyclicalFeatures(
          variables="day", max_values={"day": 31}
      )
  
      X = cyclical.fit_transform(df_cyclical)
  
      transf_df = df_cyclical.copy()
      transf_df["day_sin"] = [
          0.937752,
          0.988468,
          0.848644,
          0.571268,
          0.201298,
          0.394355,
          0.724792,
      ]
      transf_df["day_cos"] = [
          0.347305,
          0.151428,
          0.528964,
          0.820763,
          0.979530,
          0.918958,
          0.688967,
      ]
      pd.testing.assert_frame_equal(X, transf_df)
  
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 8 for calling a global function with example usage: test_max_values_mapping(df_cyclical) without return types