def METHOD_NAME(inp):
    """
        Wraps around if we split: make sure last passage isn't too short.
        This is meant to be similar to the DPR preprocessing.
    """
    (nwords, overlap, tokenizer), (title_idx, docid, title, url, content) = inp
    if tokenizer is None:
        words = content.split()
    else:
        words = tokenizer.tokenize(content)
    words_ = (words + words) if len(words) > nwords else words
    passages = [words_[offset:offset + nwords] for offset in range(0, len(words) - overlap, nwords - overlap)]
    assert all(len(psg) in [len(words), nwords] for psg in passages), (list(map(len, passages)), len(words))
    if tokenizer is None:
        passages = [' '.join(psg) for psg in passages]
    else:
        passages = [' '.join(psg).replace(' ##', '') for psg in passages]
    if title_idx % 100000 == 0:
        print("#> ", title_idx, '\t\t\t', title)
        for p in passages:
            print("$$$ ", '\t\t', p)
            print()
        print()
        print()
        print()
    return (docid, title, url, passages)