code: def _pipe_line_with_colons(colwidths, colaligns):
      """Return a horizontal line with optional colons to indicate column's
      alignment (as in `pipe` output format)."""
      segments = [
          _pipe_segment_with_colons(a, w)
          for a, w in zip(colaligns, colwidths)
      ]
      return "|" + "|".join(segments) + "|"
  
imports: from __future__ import print_function
  from __future__ import unicode_literals
  from collections import namedtuple
  from platform import python_version_tuple
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: _pipe_line_with_colons(colwidths, colaligns) and returns: unknown