code: def test_manpage_formatter():
      addonsections = {"mytest": "uniquedummystring"}
  
      parsers = setup_parser(["datalad"], return_subparsers=True)
      for p in parsers:
          mp = fmt.ManPageFormatter(
              p, ext_sections=addonsections
          ).format_man_page(parsers[p])
          for section in ("SYNOPSIS", "NAME", "OPTIONS", "MYTEST"):
              assert_in(".SH {0}".format(section), mp)
          assert_in("uniquedummystring", 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 3 for calling a global function with example usage: test_manpage_formatter() without return types