def normalize_From(node):
    """ Return a list of strings of Python 'from' statements, one import on each
    line.
    """
    statements = []
    children = node.getChildren()
    module = '.'*node.level + node.modname
    for name, asname in children[1]:
        line = 'from %s import %s' % (module, name)
        if asname is not None:
            line += asname % ' as %s'
        line += '\n'
        statements.append(line)
    return statements
dataset/ETHPy150Open while0pass/grin/examples/grinimports.py/normalize_From/swapped operands of `%`