<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enable_aliases_autocomplete_interactive(_, **kwargs):
 """ Enable aliases autocomplete on interactive mode by injecting aliases in the command tree. """

    subtree = kwargs.get('subtree', None)
    if not subtree or not hasattr(subtree, 'children'):
        return

    for alias, alias_command in filter_aliases(get_alias_table()):
        # Only autocomplete the first word because alias is space-delimited
        if subtree.in_tree(alias_command.split()):
            subtree.add_child(CommandBranch(alias))