1 2 3 4 5 6 7
import collections Document = collections.namedtuple("Document", ["children"]) Paragraph = collections.namedtuple("Paragraph", ["children"]) Run = collections.namedtuple("Run", ["children"]) Text = collections.namedtuple("Text", ["value"])