code: def repeat(times):
      """Decorator that imposes the test to be successful in a row.
  
      Decorated test case is launched multiple times.
      The case is regarded as passed only if it is successful
      specified times in a row.
  
      .. note::
          In current implementation, this decorator grasps the
          failure information of each trial.
  
      Args:
          times(int): The number of trials.
      """
      return repeat_with_success_at_least(times, times)
  
file_path: chainer/chainer/testing/condition.py
imports: import functools
  import unittest
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: repeat(times) and returns: repeat_with_success_at_least