code: def request_wrap_timeout(func, url):
      import requests
  
      for attempt, timeout in enumerate([10, 20, 40, 60, 60]):
          try:
              return func(timeout=timeout)
          except requests.exceptions.Timeout as e:
              logger.warning(
                  "Request for %s timed-out (attempt %d). Retrying with a timeout of %d secs",
                  url,
                  attempt,
                  timeout,
                  exc_info=e,
              )
              continue
      raise RuntimeError(f"Unable to fetch file {url}")
  
imports: import fnmatch
  import json
  import logging
  import os
  import shutil
  import tarfile
  import tempfile
  from functools import partial, wraps
  from hashlib import sha256
  from io import open
label_desc: Use image node_id 10 for calling a global function with example usage: request_wrap_timeout(func, url) and returns: func