code: def view_log(log_dict):
      if "bleu" in log_dict:
          global best_bleu
          best_bleu = max(best_bleu, log_dict["bleu"])
          log_dict["best_bleu"] = best_bleu
      tmp = [f"({k}, {v})" for k, v in log_dict.items()]
      return " ".join(tmp)
  
imports: import math
  import torch
  from torch import nn
  import torch.distributed
  import deepspeed
  from deepspeed.utils import log_dist
  from fairseq import tasks, distributed_utils
  from fairseq.logging import metrics
  from ds_fairseq_data import BatchIterator
  from ds_fairseq_argument import gen_ds_fairseq_arg
label_desc: Use image node_id 2 for calling a global function with example usage: view_log(log_dict) and returns: str