code: def _multiline_convert(config, start="banner login", end="EOF", depth=1):
          
          ret = list(config)  # Don't modify list in-place
          try:
              s = ret.index(start)
              e = s
              while depth:
                  e = ret.index(end, e + 1)
                  depth = depth - 1
          except ValueError:  # Couldn't find end, abort
              return ret
          ret[s] = {"cmd": ret[s], "input": "\n".join(ret[s + 1 : e])}
          del ret[s + 1 : e + 1]
  
          return ret
docs: Converts running-config HEREDOC into EAPI JSON dict