code: def test_rstmanpage_formatter():
      parsers = setup_parser(["datalad"], return_subparsers=True)
      for p in parsers:
          mp = fmt.RSTManPageFormatter(p).format_man_page(parsers[p])
          for section in ("Synopsis", "Description", "Options"):
              assert_in("\n{0}".format(section), mp)
          assert_in("{0}\n{1}".format(p, "=" * len(p)), mp)
  
file_path: datalad/datalad/cli/tests/test_formatters.py
imports: import importlib.util
  from io import StringIO
  from pathlib import Path
  import pytest
  from datalad.tests.utils_pytest import SkipTest, assert_in, assert_not_in, ok_, ok_startswith
  from ..parser import setup_parser
label_desc: Use image node_id 4 for calling a global function with example usage: test_rstmanpage_formatter() without return types