code: def test_patheffects_spaces_and_newlines():
      ax = plt.subplot()
      s1 = "         "
      s2 = "\nNewline also causes problems"
      text1 = ax.text(
          0.5,
          0.75,
          s1,
          ha="center",
          va="center",
          size=20,
          bbox={"color": "salmon"},
      )
      text2 = ax.text(
          0.5,
          0.25,
          s2,
          ha="center",
          va="center",
          size=20,
          bbox={"color": "thistle"},
      )
      text1.set_path_effects([path_effects.Normal()])
      text2.set_path_effects([path_effects.Normal()])
  
file_path: matplotlib/lib/matplotlib/tests/test_patheffects.py
imports: import numpy
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.patheffects
  from matplotlib.path import Path
  import matplotlib.patches
label_desc: Use image node_id 9 for calling a global function with example usage: test_patheffects_spaces_and_newlines() without return types