code: def assemble_logical_lines():
      """Join lines following explicit line continuations (\)"""
      line = ""
      while True:
          line = yield line
          if not line or line.isspace():
              continue
  
          parts = []
          while line is not None:
              if line.endswith("\\") and (not has_comment(line)):
                  parts.append(line[:-1])
                  line = yield None  # Get another line
              else:
                  parts.append(line)
                  break
  
          # Output
          line = "".join(parts)
  
imports: import abc
  import functools
  import re
  from IPython.core.splitinput import LineInfo
  from IPython.utils import tokenize2
  from IPython.utils.openpy import cookie_comment_re
  from IPython.utils.py3compat import with_metaclass, PY3
  from IPython.utils.tokenize2 import generate_tokens, untokenize, TokenError
label_desc: Use image node_id 1 for calling a global function with example usage: assemble_logical_lines() without return types