code: def test_alter_interface_docs_for_api():
      alt = alter_interface_docs_for_api(demo_doc)
      alt_l = alt.split("\n")
      # de-dented
      assert_false(alt_l[0].startswith(" "))
      assert_false(alt_l[-1].startswith(" "))
      assert_not_in("CMD", alt)
      assert_not_in("PY", alt)
      assert_not_in("REFLOW", alt)
      assert_in("a b", alt)
      assert_in("not\n   reflowed", alt)
      assert_in("Some Python-only bits Multiline!", alt)
      assert_in("Some Python-only bits", alt)
      assert_in("just for Python", alt)
      assert_not_in("just for the command line", alt)
      assert_not_in("multiline cli-only with [ brackets\n[] ]", alt)
      assert_in("multiline\npython-only with [ brackets [] ]", alt)
  
      altpd = alter_interface_docs_for_api(demo_paramdoc)
      assert_not_in("PY", altpd)
      assert_not_in("CMD", altpd)
      assert_in("python", altpd)
      assert_in("in between", altpd)
      assert_in("appended", altpd)
      assert_in(
          "multiline\n  python-only with [ some brackets []", altpd
      )
      assert_not_in("cmdline", altpd)
      assert_not_in(
          "multiline cli-only [\n  brackets included "
          "[ can we also have || ?]",
          altpd,
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_alter_interface_docs_for_api() without return types