code: def repeat_test(original_function=None, *, num_times=3):
      """Decorator that can be used to repeat test multiple times."""
  
      def repeat_test_decorator(func):
          @wraps(func)
          def wrapper(*args, **kwargs):
              for _ in range(num_times):
                  func(*args, **kwargs)
  
          return wrapper
  
      # this handles default arguments to decorator:
      if original_function:
          return repeat_test_decorator(original_function)
      return repeat_test_decorator
  
imports: import os
  import unittest
  from functools import wraps
  import torch
  from classy_vision.hooks import ClassyHook
  from classy_vision.tasks import ClassyTask
  from classy_vision.trainer import ClassyTrainer
label_desc: Use image node_id 2 for calling a global function with example usage: repeat_test(original_function) and returns: repeat_test_decorator, wrapper, repeat_test_decorator