<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _auto_insert_check(self):
 """Automatically insert tasks asynchronously. Depending on batch_size, insert or wait until next call. """


        if not self.batch_size:
            return

        if len(self._tasks) >= self.batch_size:
            self._handle_tasks()