code: def test_get_fitted_params():
      """Tests fitted parameter retrieval.
  
      Raises
      ------
      AssertionError if logic behind get_fitted_params is incorrect, logic tested:
          calling get_fitted_params on a non-composite fittable returns the fitted param
          calling get_fitted_params on a composite returns all nested params
      """
      non_composite = FittableCompositionDummy(foo=42)
      composite = FittableCompositionDummy(foo=deepcopy(non_composite))
  
      non_composite.fit()
      composite.fit()
  
      non_comp_f_params = non_composite.get_fitted_params()
      comp_f_params = composite.get_fitted_params()
      comp_f_params_shallow = composite.get_fitted_params(deep=False)
  
      assert isinstance(non_comp_f_params, dict)
      assert set(non_comp_f_params.keys()) == {"foo"}
  
      assert isinstance(comp_f_params, dict)
      assert set(comp_f_params) == {"foo", "foo__foo"}
      assert set(comp_f_params_shallow) == {"foo"}
      assert comp_f_params["foo"] is composite.foo_
      assert comp_f_params["foo"] is not composite.foo
      assert comp_f_params_shallow["foo"] is composite.foo_
      assert comp_f_params_shallow["foo"] is not composite.foo
  
imports: from copy import deepcopy
  import pytest
  from sktime.base import BaseEstimator, BaseObject
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 13 for calling a global function with example usage: test_get_fitted_params() without return types