original_docstring: Recursive to get xpath-node's root when augment.(recursive function).
      Args:
          node_name: The node name that split by xpath.
          root: The module's root.
      Returns:
          root: The xpath-node's root.
      
docstring: Recursive to get xpath-node's root when augment.(recursive function).
docstring_tokens: Recursive to get xpath - node ' s root when augment . ( recursive function ) .
code: def recursive_root_of_augment(node_name, root):
      """Recursive to get xpath-node's root when augment.(recursive function).
      Args:
          node_name: The node name that split by xpath.
          root: The module's root.
      Returns:
          root: The xpath-node's root.
      """
      if not hasattr(root, 'i_children'):
          return None
      current_node_stmts = [node for node in root.i_children]
      for current_node in current_node_stmts:
          if current_node.keyword in ('input','output','choice','case'):
              root = recursive_root_of_augment(node_name,current_node)
              if root is not None:
                  return root
              else:
                  continue
          if node_name == current_node.arg:
              root = current_node
              return root
      return None
code_tokens: def recursive_root_of_augment ( node_name , root ) : if not hasattr ( root , 'i_children' ) : return None current_node_stmts = [ node for node in root . i_children ] for current_node in current_node_stmts : if current_node . keyword in ( 'input' , 'output' , 'choice' , 'case' ) : root = recursive_root_of_augment ( node_name , current_node ) if root is not None : return root else : continue if node_name == current_node . arg : root = current_node return root return None
short_docstring: Recursive to get xpath-node's root when augment.
short_docstring_tokens: Recursive to get xpath - node ' s root when augment .
comment: """Recursive to get xpath-node's root when augment.(recursive function).
      Args:
          node_name: The node name that split by xpath.
          root: The module's root.
      Returns:
          root: The xpath-node's root.
      """