<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _repeat(self, count, func):
 """ Repeat action 1 or more times. If more than one - do it as 1 undoble action """

        if count != 1:
            with self._qpart:
                for _ in range(count):
                    func()
        else:
            func()