code: def restore_state_from_checkpoint(
      self, checkpoint_dir: str, checkpoint_prefix: str
  ):
      latest_checkpoint_filename = get_latest_checkpoint(
          checkpoint_dir,
          checkpoint_prefix,
          self.checkpoint_file_extension,
      )
  
      if latest_checkpoint_filename == "":
          raise ValueError(
              "Could not find NumpySharedRunningStats checkpoint file. "
          )
  
      with open(
          os.path.join(checkpoint_dir, str(latest_checkpoint_filename)),
          "rb",
      ) as f:
          saved_dict = pickle.load(f)
          self.__dict__.update(saved_dict)
  
imports: import os
  from abc import ABC, abstractmethod
  import threading
  import pickle
  import redis
  import numpy
  from rl_coach.utils import get_latest_checkpoint
label_desc: Use image node_id 12 for calling the NumpySharedRunningStats obj's underlying member method code with example usage: obj.restore_state_from_checkpoint(checkpoint_dir, checkpoint_prefix) without return types