code: def test_reset():
      """Tests reset method for correct behaviour, on a simple estimator.
  
      Raises
      ------
      AssertionError if logic behind reset is incorrect, logic tested:
          reset should remove any object attributes that are not hyper-parameters,
          with the exception of attributes containing double-underscore "__"
          reset should not remove class attributes or methods
          reset should set hyper-parameters as in pre-reset state
      """
      x = ResetTester(168)
      x.foo()
  
      x.reset()
  
      assert hasattr(x, "a") and x.a == 168
      assert hasattr(x, "b") and x.b == 42
      assert hasattr(x, "c") and x.c == 84
      assert hasattr(x, "clsvar") and x.clsvar == 210
      assert not hasattr(x, "d")
      assert not hasattr(x, "_d")
      assert not hasattr(x, "d_")
      assert hasattr(x, "f__o__o") and x.f__o__o == 252
      assert hasattr(x, "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 8 for calling a global function with example usage: test_reset() without return types