Module(body=[FunctionDef(name='f',
                         args=arguments(args=[],
                                        vararg=None,
                                        kwarg=None,
                                        defaults=[]),
                         body=[Expr(value=Yield(value=Num(n=1))),
                               Expr(value=Yield(value=Num(n=2)))],
                         decorator_list=[]),
             Assign(targets=[Name(id='g',
                                  ctx=Store())],
                    value=Call(func=Name(id='f',
                                         ctx=Load()),
                               args=[],
                               keywords=[],
                               starargs=None,
                               kwargs=None)),
             Print(dest=None,
                   values=[Call(func=Attribute(value=Name(id='g',
                                                          ctx=Load()),
                                               attr='next',
                                               ctx=Load()),
                                args=[],
                                keywords=[],
                                starargs=None,
                                kwargs=None)],
                   nl=True),
             Print(dest=None,
                   values=[Call(func=Attribute(value=Name(id='g',
                                                          ctx=Load()),
                                               attr='next',
                                               ctx=Load()),
                                args=[],
                                keywords=[],
                                starargs=None,
                                kwargs=None)],
                   nl=True),
             For(target=Name(id='i',
                             ctx=Store()),
                 iter=Call(func=Name(id='f',
                                     ctx=Load()),
                           args=[],
                           keywords=[],
                           starargs=None,
                           kwargs=None),
                 body=[Print(dest=None,
                             values=[Name(id='i',
                                          ctx=Load())],
                             nl=True)],
                 orelse=[])])
