code: def _log_intermediate_failure(self, err, flaky, name):
          
          max_runs = flaky[FlakyNames.MAX_RUNS]
          runs_left = max_runs - flaky[FlakyNames.CURRENT_RUNS]
          message = self._retry_failure_message.format(
              runs_left,
              max_runs,
          )
          self._log_test_failure(name, err, message)
docs: Report that the test has failed, but still has reruns left.
          Then rerun the test.
  
          :param err:
              Information about the test failure (from sys.exc_info())
          :type err:
              `tuple` of `class`, :class:`Exception`, `traceback`
          :param flaky:
              Dictionary of flaky attributes
          :type flaky:
              `dict` of `unicode` to varies
          :param name:
              The test name
          :type name:
              `unicode`