def store_transition(self, frame, action, reward, done, extra_info=None):
self.current_idx = (self.current_idx + <NUM_LIT:1>) % self.buffer_capacity<EOL>self.state_buffer[self.current_idx] = frame<EOL>self.action_buffer[self.current_idx] = action<EOL>self.reward_buffer[self.current_idx] = reward<EOL>self.dones_buffer[self.current_idx] = done<EOL>for name in self.extra_data:<EOL><INDENT>self.extra_data[name][self.current_idx] = extra_info[name]<EOL><DEDENT>if self.current_size < self.buffer_capacity:<EOL><INDENT>self.current_size += <NUM_LIT:1><EOL><DEDENT>return self.current_idx<EOL>
Store given transition in the backend