code: def is_temporary(e):
      def is_broken(e):
          return isinstance(e, urllib2.HTTPError) and e.code in (
              410,
              404,
          )
  
      if is_broken(e):
          return False
  
      if isinstance(
          e,
          (
              BadChecksumFetchError,
              IncompleteFetchError,
              urllib2.URLError,
              socket.error,
          ),
      ):
          return True
  
      import error
  
      return error.is_temporary_error(e)
  
imports: import datetime
  import errno
  import hashlib
  import json
  import logging
  import os
  import platform
  import random
  import shutil
  import socket
  import string
  import sys
  import tarfile
  import urllib2
  import retry
label_desc: Use image node_id 7 for calling a global function with example usage: is_temporary(e) and returns: error, unknown, False, True