code: def test_transfer_deprecated_param_vals():
      """Unit test to check that values assigned to deprecated parameters are
      correctly reassigned to the replacement parameters.
      """
      (
          mock_input,
          replacement_params,
      ) = _mock_args_for_testing_replace_parameter()
      expected_output = {
          "unchanged_param_0": "unchanged_param_0_val",
          "replacement_param_0": "deprecated_param_0_val",
          "replacement_param_1": "deprecated_param_1_val",
          "unchanged_param_1": "unchanged_param_1_val",
      }
      actual_ouput = helpers._transfer_deprecated_param_vals(
          replacement_params,
          mock_input,
      )
      assert actual_ouput == expected_output
  
file_path: nilearn/nilearn/_utils/tests/test_helpers.py
imports: import warnings
  import pytest
  from nilearn._utils import helpers
label_desc: Use image node_id 3 for calling a global function with example usage: test_transfer_deprecated_param_vals() without return types