class_docstr: ErrorTrees make it easier to check which validations failed.
class_docstr_tok: ["ErrorTrees","make","it","easier","to","check","which","validations","failed","."]
code: def __init__(self, errors=()):
      self.errors = {}
      self._contents = defaultdict(self.__class__)
  
      for error in errors:
          container = self
          for element in error.path:
              container = container[element]
          container.errors[error.validator] = error
  
          container._instance = error.instance
  
imports: from collections import defaultdict, deque
  import itertools
  import pprint
  import textwrap
  import attr
  from jsonschema import _utils
  from jsonschema.compat import PY3, iteritems
label_desc: Use image node_id 1 to create a new ErrorTree object from inherited base classes: object with example: obj = ErrorTree(errors)