code: def merge_lines(line_1, line_2):
      """Merge two consecutive lines, depending on the last character of
      the first line."""
      if not line_1:
          return line_2
      pattern = (
          "{0} {1}" if LAST_CHARACTER.match(line_1[-1]) else "{0}{1}"
      )
      return pattern.format(line_1, line_2)
  
file_path: pytorch-meta/docs/scripts/api_reference.py
imports: import importlib
  import inspect
  import re
  import yaml
  import logging
  import torch.nn
label_desc: Use image node_id 6 for calling a global function with example usage: merge_lines(line_1, line_2) and returns: pattern, line_2