code: def replace_wrep(t):
      "Replace word repetitions: word word word word -- TK_WREP 4 word"
  
      def _replace_wrep(m):
          c, cc, e = m.groups()
          return f" {TK_WREP} {len(cc.split())+2} {c} {e}"
  
      return _re_wrep.sub(_replace_wrep, t)
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  import html
label_desc: Use image node_id 4 for calling a global function with example usage: replace_wrep(t) and returns: _re_wrep, str, TK_WREP, str, unknown, str, c, str, e