def create_restore_point(self, name=None):
if name is None:<EOL><INDENT>for i in iter(int, <NUM_LIT:1>):<EOL><INDENT>name = datetime.datetime.utcnow().strftime('<STR_LIT>') + '<STR_LIT:_>' + str(i)<EOL>try:<EOL><INDENT>self.config_state[name]<EOL><DEDENT>except KeyError:<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>if name in self.config_state:<EOL><INDENT>raise ValueError('<STR_LIT>' % name)<EOL><DEDENT>self.config_state[name] = (copy.deepcopy(self.global_registers), copy.deepcopy(self.pixel_registers))<EOL>return name<EOL>
Creating a configuration restore point.

        Parameters
        ----------
        name : str
            Name of the restore point. If not given, a md5 hash will be generated.