<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_text(self, node):
 """Try to emit whatever text is in the node."""

        try:
            return node.children[0].content or ""
        except (AttributeError, IndexError):
            return node.content or ""