code: def clean_example(maybe_example):
      maybe_example["src"] = {"src": " ".join(maybe_example["src"])}
      # Make features part of src like
      # {'src': {'src': ..., 'feats': [...., ....]}}
      if "src_feats" in maybe_example:
          maybe_example["src"]["feats"] = [
              " ".join(x) for x in maybe_example["src_feats"]
          ]
          del maybe_example["src_feats"]
      if maybe_example["tgt"] is not None:
          maybe_example["tgt"] = {"tgt": " ".join(maybe_example["tgt"])}
      if "align" in maybe_example:
          maybe_example["align"] = " ".join(maybe_example["align"])
      return maybe_example
  
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 4 for calling a global function with example usage: clean_example(maybe_example) and returns: maybe_example