class_docstr: Locked state of the algorithm from the storage.
  
  This class helps handle setting the state of the algorithm or resetting it in case
  the execution crashes during the lock.
  
  Parameters
  ----------
  state: dict
      Dictionary representing the state of the algorithm.
  configuration: dict
      Configuration of the locked algorithm.
  locked: bool
      Whether the algorithm is locked or not. Default: True
  heartbeat: datetime
      Current heartbeat of algorithm
class_docstr_tok: ["Locked","state","of","the","algorithm","from","the","storage",".","This","class","helps","handle","setting","the","state","of","the","algorithm","or","resetting","it","in","case","the","execution","crashes","during","the","lock",".","Parameters","--","--","--","--","--","state",":","dict","Dictionary","representing","the","state","of","the","algorithm",".","configuration",":","dict","Configuration","of","the","locked","algorithm",".","locked",":","bool","Whether","the","algorithm","is","locked","or","not",".","Default",":","True","heartbeat",":","datetime","Current","heartbeat","of","algorithm"]
docstr: Set back algorithm state to original state found in storage.
docstr_tok: ["Set","back","algorithm","state","to","original","state","found","in","storage","."]
code: def reset(self) -> None:
      """Set back algorithm state to original state found in storage."""
      self._state = self._original_state
  
imports: from __future__ import annotations
  import contextlib
  import copy
  import logging
  import typing
  from datetime import datetime
  from typing import Literal
  import orion.core
  from orion.core.io import resolve_config
  from orion.core.utils import GenericFactory
label_desc: Use image node_id 4 for calling the LockedAlgorithmState obj's underlying member method code with example usage: obj.reset() without return types