code: def depparse(self, mode="enhancedPlusPlus"):
          
          assert mode in [
              "basic",
              "alternative",
              "collapsedCCProcessed",
              "collapsed",
              "enhanced",
              "enhancedPlusPlus", ], "Invalid mode"
          dep_pb = getattr(self.pb, mode + "Dependencies")
          if dep_pb is None:
              raise AttributeError("No dependencies for mode: " + mode)
          else:
              tree = AnnotatedDependencyParseTree(dep_pb)
              tree.sentence = self
              return tree
docs: Retrieves the appropriate dependency parse.
          Must be one of:
              - basic
              - alternative
              - collapsedCCProcessed
              - collapsed
              - enhanced
              - enhancedPlusPlus