class_docstr: Base class for a Wrapper around an algorithm.
docstr: Return a state dict that can be used to reset the state of the algorithm.
  
  AlgoWrappers should overwrite this and add any additional state they own.
docstr_tok: ["Return","a","state","dict","that","can","be","used","to","reset","the","state","of","the","algorithm",".","AlgoWrappers","should","overwrite","this","and","add","any","additional","state","they","own","."]
code: def state_dict(self) -> dict:
      """Return a state dict that can be used to reset the state of the algorithm.
  
      AlgoWrappers should overwrite this and add any additional state they own.
      """
      # Get the state of the wrapper's registry, via `BaseAlgorithm.state_dict`
      state_dict = super().state_dict
      # Add the state of the wrapped algorithm as a nested dictionary.
      state_dict["algorithm"] = copy.deepcopy(self.algorithm.state_dict)
      return state_dict
  
imports: from __future__ import annotations
  import copy
  from logging import getLogger
  from typing import TYPE_CHECKING, Generic, Sequence, TypeVar
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Space
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 11 for calling the AlgoWrapper obj's underlying member method code with example usage: obj.state_dict() and returns: state_dict