class_docstr: The base class for saving and restoring the state.
  
  The functionalities in this class is for the user to resume a previously
  stopped program by runing the same code again.
  
  Usually, the arguments in `__init__()` should not be added to the state. The
  `Stateful` objects can get the arguments again just by running the same code
  even without loading the previous states.
  
  The state of an object here is the results produced during running the
  program, which can save time for the user if restored.
class_docstr_tok: ["The","base","class","for","saving","and","restoring","the","state",".","The","functionalities","in","this","class","is","for","the","user","to","resume","a","previously","stopped","program","by","runing","the","same","code","again",".","Usually",",","the","arguments","in","`","__init__","(",")","`","should","not","be","added","to","the","state",".","The","`","Stateful","`","objects","can","get","the","arguments","again","just","by","running","the","same","code","even","without","loading","the","previous","states",".","The","state","of","an","object","here","is","the","results","produced","during","running","the","program",",","which","can","save","time","for","the","user","if","restored","."]
docstr: Sets the current state of this object.
  
  This method is called during `reload`.
  
  Args:
      state: A dictionary of serialized objects as the state to restore.
docstr_tok: ["Sets","the","current","state","of","this","object",".","This","method","is","called","during","`","reload","`",".","Args",":","state",":","A","dictionary","of","serialized","objects","as","the","state","to","restore","."]
code: def set_state(self, state):
      """Sets the current state of this object.
  
      This method is called during `reload`.
  
      Args:
          state: A dictionary of serialized objects as the state to restore.
      """
      raise NotImplementedError
  
imports: from keras_tuner import utils
label_desc: Use image node_id 2 for calling the Stateful obj's underlying member method code with example usage: obj.set_state(state) without return types