code: def _repeat(self, count, func):
          
          if count != 1:
              with self._qpart:
                  for _ in range(count):
                      func()
          else:
              func()
docs: Repeat action 1 or more times.
          If more than one - do it as 1 undoble action