code: def test_retries(self):
      self.minimum_engines(3)
      view = self.view
  
      def fail():
          raise ValueError("Failed!")
  
      for r in range(len(self.client) - 1):
          with view.temp_flags(retries=r):
              with raises_remote(ValueError):
                  view.apply_sync(fail)
  
      with view.temp_flags(retries=len(self.client), timeout=0.1):
          with raises_remote(error.TaskTimeout):
              view.apply_sync(fail)
  
imports: import time
  from itertools import count
  import pytest
  import ipyparallel
  from ipyparallel import error
  from .clienttest import ClusterTestCase, crash, raises_remote
label_desc: Use image node_id 15 for calling the TestLoadBalancedView obj's underlying member method code with example usage: obj.test_retries() without return types