tools/media_engagement_preload/make_dafsa.py
def to_words(node):
  """Generates a word list from all paths starting from an internal node."""
  if not node:
    return ['']
  return [(node[0] + word) for child in node[1] for word in to_words(child)]
Generates a word list from all paths starting from an internal node.
Generates a word list from all paths starting from an internal node.
Generates a word list from all paths starting from an internal node .
def to_words(node):
  if not node:
    return ['']
  return [(node[0] + word) for child in node[1] for word in to_words(child)]
def to_words ( node ) : if not node : return [ '' ] return [ ( node [ 0 ] + word ) for child in node [ 1 ] for word in to_words ( child ) ]
Generates a word list from all paths starting from an internal node.
Generates a word list from all paths starting from an internal node .
"""Generates a word list from all paths starting from an internal node."""
node