code: def join_continuation(lines):
      r"""
      Join lines continued by a trailing backslash.
  
      >>> list(join_continuation(['foo \\', 'bar', 'baz']))
      ['foobar', 'baz']
      >>> list(join_continuation(['foo \\', 'bar', 'baz']))
      ['foobar', 'baz']
      >>> list(join_continuation(['foo \\', 'bar \\', 'baz']))
      ['foobarbaz']
  
      Not sure why, but...
      The character preceeding the backslash is also elided.
  
      >>> list(join_continuation(['goo\\', 'dly']))
      ['godly']
  
      A terrible idea, but...
      If no line is available to continue, suppress the lines.
  
      >>> list(join_continuation(['foo', 'bar\\', 'baz\\']))
      ['foo']
      """
      lines = iter(lines)
      for item in lines:
          while item.endswith("\\"):
              try:
                  item = item[:-2].strip() + next(lines)
              except StopIteration:
                  return
          yield item
  
imports: import re
  import itertools
  import textwrap
  import functools
  from setuptools.extern.jaraco.functools import compose, method_cache
  from setuptools.extern.jaraco.context import ExceptionTrap
label_desc: Use image node_id 17 for calling a global function with example usage: join_continuation(lines) without return types