class_docstr: The hierarchical tree representing the entirety of a parse.
docstr: Returns a list of all the dependency relations in the tree,
  generated by depth-first search.
  
  >>> from cltk.languages.example_texts import get_example_text
  >>> from cltk.dependency.processes import StanzaProcess
  >>> process_stanza = StanzaProcess(language="lat")
  >>> output_doc = process_stanza.run(Doc(raw=get_example_text("lat")))
  >>> a_sentence = output_doc.sentences[0]
  >>> t = DependencyTree.to_tree(a_sentence)
  >>> len(t.get_dependencies())
  34
docstr_tok: ["Returns","a","list","of","all","the","dependency","relations","in","the","tree",",","generated","by","depth-first","search",".",">",">",">","from","cltk.languages.example_texts","import","get_example_text",">",">",">","from","cltk.dependency.processes","import","StanzaProcess",">",">",">","process_stanza","=","StanzaProcess","(","language=","''","lat","''",")",">",">",">","output_doc","=","process_stanza.run","(","Doc","(","raw=get_example_text","(","``","lat","''",")",")",")",">",">",">","a_sentence","=","output_doc.sentences","[","0","]",">",">",">","t","=","DependencyTree.to_tree","(","a_sentence",")",">",">",">","len","(","t.get_dependencies","(",")",")","34"]
code: def get_dependencies(self) -> List[Dependency]:
      """Returns a list of all the dependency relations in the tree,
      generated by depth-first search.
  
      >>> from cltk.languages.example_texts import get_example_text
      >>> from cltk.dependency.processes import StanzaProcess
      >>> process_stanza = StanzaProcess(language="lat")
      >>> output_doc = process_stanza.run(Doc(raw=get_example_text("lat")))
      >>> a_sentence = output_doc.sentences[0]
      >>> t = DependencyTree.to_tree(a_sentence)
      >>> len(t.get_dependencies())
      34
      """
  
      def _get_deps(
          node: Form, deps: List[Dependency]
      ) -> List[Dependency]:
          for child_node in list(node):
              deps = _get_deps(child_node, deps)
              deps.extend(node.get_dependencies(child_node("relation")))
          return deps
  
      deps = _get_deps(self.getroot(), [])
      deps.append(Dependency(None, self.getroot(), "root"))
      return deps
  
imports: from typing import Dict, List, Union
  from xml.etree.ElementTree import Element, ElementTree
  from cltk.core.data_types import Doc, Process, Word
  from cltk.core.exceptions import CLTKException
  from cltk.morphology.universal_dependencies_features import NOMINAL_FEATURES, OTHER_FEATURES, VERBAL_FEATURES, MorphosyntacticFeature
label_desc: Use image node_id 2 for calling the DependencyTree obj's underlying member method code with example usage: obj.get_dependencies() and returns: deps, deps