class_docstr: Class to store state within instances of ClassyHook.
  
  Any serializable data can be stored in the instance's attributes.
class_docstr_tok: ["Class","to","store","state","within","instances","of","ClassyHook",".","Any","serializable","data","can","be","stored","in","the","instance","'s","attributes","."]
code: def set_classy_state(self, state_dict: Dict[str, Any]):
      # We take a conservative approach and only update the dictionary instead of
      # replacing it. This allows hooks to continue functioning in case the state
      # is loaded from older implementations.
      self.__dict__.update(state_dict)
  
file_path: ClassyVision/classy_vision/hooks/classy_hook.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict
  from classy_vision.generic.util import log_class_usage
label_desc: Use image node_id 2 for calling the ClassyHookState obj's underlying member method code with example usage: obj.set_classy_state(state_dict) without return types