code: def _maybe_list_to_str(list_or_str):
      if isinstance(list_or_str, (tuple, list, np.ndarray)):
          return " ".join(list_or_str)
      return list_or_str
  
file_path: texar/texar/tf/evals/bleu_moses.py
imports: import os
  from io import open
  import shutil
  import re
  import subprocess
  import tempfile
  import numpy
  import tensorflow
  from texar.tf.utils.dtypes import compat_as_text
label_desc: Use image node_id 1 for calling a global function with example usage: _maybe_list_to_str(list_or_str) and returns: list_or_str, str