<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _batch_entry_run(self):
 """The inside of ``_batch_entry``'s infinite loop. Separated out so it can be properly unit tested. """

        time.sleep(self.secs_between_batches)
        with self._batch_lock:
            self.process_batches()