<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _record_training_step(self, summary):
 """ Adds summary to writer and increments the step. """

        self.writer.add_summary(summary=summary, global_step=self.step)
        self.step += 1