code: def format_lines(var_name, seq, raw=False, indent_level=0):
      """Formats a sequence of strings for output."""
      lines = []
      base_indent = " " * indent_level * 4
      inner_indent = " " * (indent_level + 1) * 4
      lines.append(base_indent + var_name + " = (")
      if raw:
          # These should be preformatted reprs of, say, tuples.
          for i in seq:
              lines.append(inner_indent + i + ",")
      else:
          for i in seq:
              # Force use of single quotes
              r = repr(i + '"')
              lines.append(inner_indent + r[:-2] + r[-1] + ",")
      lines.append(base_indent + ")")
      return "\n".join(lines)
  
imports: import re
  import sys
label_desc: Use image node_id 13 for calling a global function with example usage: format_lines(var_name, seq, raw, indent_level) and returns: str