code: def test_reset_composite():
      """Test reset method for correct behaviour, on a composite estimator."""
      y = ResetTester(42)
      x = ResetTester(a=y)
  
      x.foo(y)
      x.d.foo()
  
      x.reset()
  
      assert hasattr(x, "a")
      assert not hasattr(x, "d")
      assert not hasattr(x.a, "d")
  
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 9 for calling a global function with example usage: test_reset_composite() without return types