#NEWLINE# @ contextmanager #NEWLINE# def temp_ballots_resource( ) : #NEWLINE# #INDENT# with streams . TempFileResource . create_temp ( ) as backing_resource : #NEWLINE# #INDENT# ballots_resource = internal . internal_ballots_resource ( backing_resource ) #NEWLINE# ( yield ballots_resource )