<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getNode(self, name, **context):
 """Return tree node found by name"""

        if name == self.name:
            return self
        else:
            return self.getBranch(name, **context).getNode(name, **context)