<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_state(self, in_path):
 """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. """


        with open(in_path, "r") as infile:
            state = json.load(infile)

        self.restore_state(state)