code: def append_features_to_text(text, features):
      """
      It appends features to subwords when dumping to file
      """
      text_tok = text.split(" ")
      feats_tok = [x.split(" ") for x in features]
  
      pretty_toks = []
      for tok, *feats in zip(text_tok, *feats_tok):
          feats = "￨".join(feats)
          if feats:
              pretty_toks.append(f"{tok}￨{feats}")
          else:
              pretty_toks.append(tok)
      return " ".join(pretty_toks)
  
file_path: OpenNMT-py/onmt/inputters/text_utils.py
imports: import torch
  import pyonmttok
  from onmt.constants import DefaultTokens, CorpusTask, ModelTask
  from torch.nn.utils.rnn import pad_sequence
  from onmt.utils.logging import logger
  from collections import Counter
label_desc: Use image node_id 2 for calling a global function with example usage: append_features_to_text(text, features) and returns: str