code: def replace_all_caps(t):
      "Replace tokens in ALL CAPS by their lower version and add `TK_UP` before."
  
      def _replace_all_caps(m):
          tok = f"{TK_UP} " if len(m.groups()[1]) > 1 else ""
          return f"{m.groups()[0]}{tok}{m.groups()[1].lower()}"
  
      return _re_all_caps.sub(_replace_all_caps, t)
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  import html
label_desc: Use image node_id 6 for calling a global function with example usage: replace_all_caps(t) and returns: _re_all_caps, m, tok, m