class_docstr: Call multiple callbacks at once.
class_docstr_tok: ["Call","multiple","callbacks","at","once","."]
docstr: Restore the state of the list of callbacks from the checkpoint_dir.
  
  You should check if it's possible to restore with `can_restore`
  before calling this method.
  
  Args:
      checkpoint_dir: directory where the checkpoint is stored.
  
  Raises:
      RuntimeError: if unable to find checkpoint.
      NotImplementedError: if the `set_state` method is not implemented.
docstr_tok: ["Restore","the","state","of","the","list","of","callbacks","from","the","checkpoint_dir",".","You","should","check","if","it","'s","possible","to","restore","with","`","can_restore","`","before","calling","this","method",".","Args",":","checkpoint_dir",":","directory","where","the","checkpoint","is","stored",".","Raises",":","RuntimeError",":","if","unable","to","find","checkpoint",".","NotImplementedError",":","if","the","`","set_state","`","method","is","not","implemented","."]
code: def restore_from_dir(self, checkpoint_dir: str):
      """Restore the state of the list of callbacks from the checkpoint_dir.
  
      You should check if it's possible to restore with `can_restore`
      before calling this method.
  
      Args:
          checkpoint_dir: directory where the checkpoint is stored.
  
      Raises:
          RuntimeError: if unable to find checkpoint.
          NotImplementedError: if the `set_state` method is not implemented.
      """
      state_dict = _load_newest_checkpoint(
          checkpoint_dir, self.CKPT_FILE_TMPL.format("*")
      )
      if not state_dict:
          raise RuntimeError(
              "Unable to find checkpoint in {}.".format(checkpoint_dir)
          )
      self.set_state(state_dict)
  
imports: from abc import ABCMeta
  import glob
  import os
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
  import warnings
  from ray.util.annotations import PublicAPI, DeveloperAPI
  from ray.tune.utils.util import _atomic_save, _load_newest_checkpoint
label_desc: Use image node_id 17 for calling the CallbackList obj's underlying member method code with example usage: obj.restore_from_dir(checkpoint_dir) without return types