code: def _keep_original_ws(s, tag_s):
      """Replace whitespace with the original whitespace characters in `s`"""
      return "".join(
          c if tag_c == " " and c.isspace() else tag_c
          for c, tag_c in zip(s, tag_s)
      )
  
imports: from heapq import nlargest
  from collections import namedtuple
  from types import GenericAlias
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: _keep_original_ws(s, tag_s) and returns: str