code: def test_prepare_docstring():
      docstring = """multiline docstring
  
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit,
                  sed do eiusmod tempor incididunt ut labore et dolore magna
                  aliqua::
  
                    Ut enim ad minim veniam, quis nostrud exercitation
                      ullamco laboris nisi ut aliquip ex ea commodo consequat.
                  """
  
      assert prepare_docstring(docstring) == [
          "multiline docstring",
          "",
          "Lorem ipsum dolor sit amet, consectetur adipiscing elit,",
          "sed do eiusmod tempor incididunt ut labore et dolore magna",
          "aliqua::",
          "",
          "  Ut enim ad minim veniam, quis nostrud exercitation",
          "    ullamco laboris nisi ut aliquip ex ea commodo consequat.",
          "",
      ]
  
      docstring = """
  
                  multiline docstring with leading empty lines
                  """
      assert prepare_docstring(docstring) == [
          "multiline docstring with leading empty lines",
          "",
      ]
  
      docstring = "single line docstring"
      assert prepare_docstring(docstring) == [
          "single line docstring",
          "",
      ]
  
imports: from sphinx.util.docstrings import prepare_commentdoc, prepare_docstring, separate_metadata
label_desc: Use image node_id 2 for calling a global function with example usage: test_prepare_docstring() without return types