code: def test_deprecate_parameter():
      with pytest.warns(FutureWarning, match="is deprecated from"):
          deprecate_parameter(Sampler(), "0.2", "a")
      with pytest.warns(FutureWarning, match="Use 'b' instead."):
          deprecate_parameter(Sampler(), "0.2", "a", "b")
  
imports: import pytest
  from imblearn.utils.deprecation import deprecate_parameter
label_desc: Use image node_id 1 for calling a global function with example usage: test_deprecate_parameter() without return types