code: def fmt_row(width, row, header=False):
      """
      fits a list of items to at least a certain length
  
      :param width: (int) the minimum width of the string
      :param row: ([Any]) a list of object you wish to get the string representation
      :param header: (bool) whether or not to return the string as a header
      :return: (str) the string representation of all the elements in 'row', of length >= 'width'
      """
      out = " | ".join(fmt_item(x, width) for x in row)
      if header:
          out = out + "\n" + "-" * len(out)
      return out
  
imports: from __future__ import print_function
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: fmt_row(width, row, header) and returns: out