code: def _split_explanation(explanation):
      """Return a list of individual lines in the explanation
  
      This will return a list of lines split on '\n{', '\n}' and '\n~'.
      Any other newlines will be escaped and appear in the line as the
      literal '\n' characters.
      """
      raw_lines = (explanation or "").split("\n")
      lines = [raw_lines[0]]
      for values in raw_lines[1:]:
          if values and values[0] in ["{", "}", "~", ">"]:
              lines.append(values)
          else:
              lines[-1] += "\\n" + values
      return lines
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import pprint
  import six
  import _pytest._code
  from ..compat import Sequence
  from _pytest import outcomes
  from _pytest._io.saferepr import saferepr
  from _pytest.compat import ATTRS_EQ_FIELD
label_desc: Use image node_id 3 for calling a global function with example usage: _split_explanation(explanation) and returns: lines