code: def test_get_default_args():
      from dipy.utils.deprecator import deprecated_params
  
      def test(dummy=11, x=3):
          return dummy, x
  
      @deprecated_params("x", None, "0.3", "0.5", alternative="test2.y")
      def test2(dummy=11, x=3):
          return dummy, x
  
      @deprecated_params(
          ["dummy", "x"], None, "0.3", alternative="test2.y"
      )
      def test3(dummy=11, x=3):
          return dummy, x
  
      @deprecated_params(
          ["dummy", "x"], None, "0.3", "0.5", alternative="test2.y"
      )
      def test4(dummy=11, x=3):
          return dummy, x
  
      expected_res = {"dummy": 11, "x": 3}
      for func in [test, test2, test3, test4]:
          assert get_default_args(func) == expected_res
  
file_path: nipype/nipype/interfaces/dipy/tests/test_base.py
imports: import pytest
  from packaging.version import Version
  from collections import namedtuple
  from ...base import traits, File, TraitedSpec, BaseInterfaceInputSpec
  from ..base import convert_to_traits_type, create_interface_specs, dipy_to_nipype_interface, DipyBaseInterface, no_dipy, get_dipy_workflows, get_default_args, dipy_version
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_default_args() and returns: dummy,  x, dummy,  x, dummy,  x, dummy,  x