<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def random_word(self, *args, **kwargs):
 """ Return a random word from this tree. The length of the word depends on the this tree. :return: a random word from this tree. args and kwargs are ignored. """

        word = ""
        current = (">", 0)
        while current[0] != "<":
            choices = self[current]
            choice = random_weighted_choice(choices)
            current = choice
            word += current[0][-1]
        return word[:-1]