code: def _parse_multi_bleu_ret(bleu_str, return_all=False):
      bleu_score = re.search(r"BLEU = (.+?),", bleu_str).group(1)
      bleu_score = np.float32(bleu_score)
  
      if return_all:
          bleus = re.search(r", (.+?)/(.+?)/(.+?)/(.+?) ", bleu_str)
          bleus = [bleus.group(group_idx) for group_idx in range(1, 5)]
          bleus = [np.float32(b) for b in bleus]
          bleu_score = [bleu_score] + bleus
  
      return bleu_score
  
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 2 for calling a global function with example usage: _parse_multi_bleu_ret(bleu_str, return_all) and returns: bleu_score