code: def load_state(self, in_path):
          
  
          with open(in_path, "r") as infile:
              state = json.load(infile)
  
          self.restore_state(state)
docs: Load the current state of this emulated object from a file.
  
          The file should have been produced by a previous call to save_state.
  
          Args:
              in_path (str): The path to the saved state dump that you wish
                  to load.