code: def test_error_method_supplied(df_correlated_double):
      X = df_correlated_double
      method = "hola"
  
      transformer = DropCorrelatedFeatures(
          variables=None, method=method, threshold=0.8
      )
  
      with pytest.raises(ValueError) as errmsg:
          _ = transformer.fit_transform(X)
  
      exceptionmsg = errmsg.value.args[0]
  
      assert (
          exceptionmsg
          == "method must be either 'pearson', 'spearman', 'kendall', or a callable,"
          + f" '{method}' was supplied"
      )
  
file_path: feature_engine/tests/test_selection/test_drop_correlated_features.py
imports: import pandas
  import pytest
  from sklearn.datasets import make_classification
  from feature_engine.selection import DropCorrelatedFeatures
label_desc: Use image node_id 7 for calling a global function with example usage: test_error_method_supplied(df_correlated_double) without return types