<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _generate_ngrams_with_context_helper(ngrams_iter: iter, ngrams_len: int) -> map: """Updates the end index"""

        return map(lambda term: (term[1], term[0], term[0] + ngrams_len), enumerate(ngrams_iter))