code: def catch_url_error(fn):
      @functools.wraps(fn)
      def wrapper(*args, pretrained=False, **kwargs):
          try:
              return fn(*args, pretrained=pretrained, **kwargs)
          except urllib.error.URLError:
              # Hack for icevision/efficientdet to work without internet access
              if "efficientdet" in kwargs.get("head", ""):
                  kwargs["pretrained_backbone"] = False
              result = fn(*args, pretrained=False, **kwargs)
              rank_zero_warn(
                  "Failed to download pretrained weights for the selected backbone. The backbone has been created with"
                  " `pretrained=False` instead. If you are loading from a local checkpoint, this warning can be safely"
                  " ignored.",
                  category=UserWarning,
              )
              return result
  
      return wrapper
  
imports: import functools
  import urllib.error
  from pytorch_lightning.utilities import rank_zero_warn
label_desc: Use image node_id 1 for calling a global function with example usage: catch_url_error(fn) and returns: wrapper, fn, result