def generateGeneratorEntryCode(statement, emit, context):
    context.setCurrentSourceCodeReference(statement.getSourceReference())

    emit(
        template_generator_initial_throw % {
            "frame_exception_exit"  : context.getExceptionEscape(),
            "set_error_line_number" : getErrorLineNumberUpdateCode(context)
        }
    )
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/codegen/GeneratorCodes.py/generateGeneratorEntryCode/original