class_docstr: A wrapper around ElementTree Element objects whose main purpose is
  to provide nicer __repr__ and __str__ methods.  In addition, any
  of the wrapped Element's methods that return other Element objects
  are overridden to wrap those values before returning them.
  
  This makes Elements more convenient to work with in
  interactive sessions and doctests, at the expense of some
  efficiency.
class_docstr_tok: ["A","wrapper","around","ElementTree","Element","objects","whose","main","purpose","is","to","provide","nicer","__repr__","and","__str__","methods",".","In","addition",",","any","of","the","wrapped","Element","'s","methods","that","return","other","Element","objects","are","overridden","to","wrap","those","values","before","returning","them",".","This","makes","Elements","more","convenient","to","work","with","in","interactive","sessions","and","doctests",",","at","the","expense","of","some","efficiency","."]
docstr: Initialize a new Element wrapper for ``etree``.
  
  If ``etree`` is a string, then it will be converted to an
  Element object using ``ElementTree.fromstring()`` first:
  
      >>> ElementWrapper("<test></test>")
      <Element "<?xml version='1.0' encoding='utf8'?>\n<test />">
code: def __init__(self, etree):
      r"""
      Initialize a new Element wrapper for ``etree``.
  
      If ``etree`` is a string, then it will be converted to an
      Element object using ``ElementTree.fromstring()`` first:
  
          >>> ElementWrapper("<test></test>")
          <Element "<?xml version='1.0' encoding='utf8'?>\n<test />">
  
      """
      if isinstance(etree, str):
          etree = ElementTree.fromstring(etree)
      self.__dict__["_etree"] = etree
  
imports: import fnmatch
  import locale
  import os
  import re
  import stat
  import subprocess
  import sys
  import textwrap
  import types
  import warnings
  from xml.etree import ElementTree
label_desc: Use image node_id 2 to create a new ElementWrapper object  with example: obj = ElementWrapper(etree)