code: def _replace_interned_param(match_obj):
      """Replace the intern('unit') in `bucket()` with just the string
      literal, because the unit determines the return type of the column and the
      function would not be able to validate a unit if it was interned.
      """
      full = match_obj.group(0)
      intern_fn = match_obj.group(2)
      value = match_obj.group(3)
      intern_idx = full.index(intern_fn)
  
      # from fn(param, intern('string'), param, param...) to
      # fn (param, 'string', ...)
      return "{}'{}'{}".format(
          full[0:intern_idx], value, full[intern_idx + len(intern_fn) :]
      )
  
file_path: perspective/python/perspective/perspective/table/_utils.py
imports: import re
  from datetime import date, datetime
  from functools import partial
  from .libpsppy import t_dtype
label_desc: Use image node_id 7 for calling a global function with example usage: _replace_interned_param(match_obj) and returns: str