code: def importSafeElementTree(module_names=None):
      
      if module_names is None:
          module_names = xxe_safe_elementtree_modules
      try:
          return importElementTree(module_names)
      except ImportError:
          raise ImportError('Unable to find a ElementTree module '
                            'that is not vulnerable to XXE. '
                            'Tried importing %r' % (module_names, ))
docs: Find a working ElementTree implementation that is not vulnerable
      to XXE, using `defusedxml`.
  
      >>> XXESafeElementTree = importSafeElementTree()
  
      @param module_names: The names of modules to try to use as
          a safe ElementTree. Defaults to C{L{xxe_safe_elementtree_modules}}
  
      @returns: An ElementTree module that is not vulnerable to XXE.