code: def diehard(winerrors, tries=100, delay=1):
      def wrap(f):
          if not on_win():
              return f
  
          return lambda *args, **kwargs: run_diehard(
              f, winerrors, tries, delay, *args, **kwargs
          )
  
      return wrap
  
imports: import os
  import stat
  import sys
  import shutil
  import logging
  from six import reraise
  import library.python.func
  import library.python.strings
label_desc: Use image node_id 5 for calling a global function with example usage: diehard(winerrors, tries, delay) and returns: wrap, function, f