code: def split_string_literal(s, limit=2000):
      # MSVC can't handle long string literals.
      if len(s) < limit:
          return s
      else:
          start = 0
          chunks = []
          while start < len(s):
              end = start + limit
              if len(s) > end - 4 and "\\" in s[end - 4 : end]:
                  end -= 4 - s[end - 4 : end].find(
                      "\\"
                  )  # just before the backslash
                  while s[end - 1] == "\\":
                      end -= 1
                      if end == start:
                          # must have been a long line of backslashes
                          end = start + limit - (limit % 2) - 4
                          break
              chunks.append(s[start:end])
              start = end
          return '""'.join(chunks)
  
imports: from __future__ import absolute_import
  import re
  import sys
label_desc: Use image node_id 9 for calling a global function with example usage: split_string_literal(s, limit) and returns: s, str