code: def fmt_row(width, row, header=False):
      out = " | ".join(fmt_item(x, width) for x in row)
      if header:
          out = out + "\n" + "-" * len(out)
      return out
  
file_path: baselines/baselines/common/console_util.py
imports: from __future__ import print_function
  from contextlib import contextmanager
  import numpy
  import time
  import shlex
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: fmt_row(width, row, header) and returns: out