code: def test_strlines():
      q = 'this quote (") is in the middle'
      # the following assert rhs was prepared with
      # print(rawlines(strlines(q, 10)))
      assert strlines(q, 10) == dedent(
          """\
          (
          'this quo'
          'te (") i'
          's in the'
          ' middle'
          )"""
      )
      assert q == ("this quo" 'te (") i' "s in the" " middle")
      q = "this quote (') is in the middle"
      assert strlines(q, 20) == dedent(
          """\
          (
          "this quote (') is "
          "in the middle"
          )"""
      )
      assert strlines("\\left") == ("(\n" "r'\\left'\n" ")")
      assert strlines("\\left", short=True) == r"r'\left'"
      assert strlines('\\le"ft') == ("(\n" "r'\\le\"ft'\n" ")")
      q = "this\nother line"
      assert strlines(q) == rawlines(q)
  
file_path: sympy/sympy/utilities/tests/test_misc.py
imports: from textwrap import dedent
  import sys
  from subprocess import Popen, PIPE
  import os
  from sympy.core.singleton import S
  from sympy.testing.pytest import raises, warns_deprecated_sympy, skip_under_pyodide
  from sympy.utilities.misc import translate, replace, ordinal, rawlines, strlines, as_int, find_executable
  from sympy.external import import_module
label_desc: Use image node_id 5 for calling a global function with example usage: test_strlines() without return types