def FromImport(package_name, name_leafs):
 for leaf in name_leafs:
  leaf.remove()
 children = [Leaf(token.NAME, u'from'), Leaf(token.NAME, package_name, prefix=u' '), Leaf(token.NAME, u'import', prefix=u' '), Node(syms.import_as_names, name_leafs)]
 imp = Node(syms.import_from, children)
 return imp

def FromImport ( package_name , name_leafs ) : for leaf in name_leafs : leaf . remove ( ) children = [ Leaf ( token . NAME , u'from' ) , Leaf ( token . NAME , package_name , prefix = u' ' ) , Leaf ( token . NAME , u'import' , prefix = u' ' ) , Node ( syms . import_as_names , name_leafs ) ] imp = Node ( syms . import_from , children ) return imp
return an import statement in the form: from package import name_leafs .