code: def _wrap_with_retry_thrice(func, exc):
      def wrapped(*args, **kwargs):
          return _retry_thrice(func, exc, *args, **kwargs)
  
      return wrapped
  
imports: import errno
  import unittest
  from test import support
  from test.support import os_helper
  from test.support import socket_helper
  from test.support import ResourceDenied
  from test.test_urllib2 import sanepathname2url
  import os
  import socket
  import urllib.error
  import urllib.request
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: _wrap_with_retry_thrice(func, exc) and returns: wrapped, _retry_thrice