code: def test_name_generation():
      eq_(
          get_cmdline_command_name(
              ("some.module_something", "SomeClass")
          ),
          "module-something",
      )
      eq_(
          get_cmdline_command_name(
              ("some.module_something", "SomeClass", "override")
          ),
          "override",
      )
      eq_(
          get_cmdline_command_name(
              (
                  "some.module_something",
                  "SomeClass",
                  "override",
                  "api_ignore",
              )
          ),
          "override",
      )
  
imports: from datalad.interface.tests.test_docs import demo_argdoc, demo_doc, demo_paramdoc
  from datalad.tests.utils_pytest import assert_false, assert_in, assert_not_in, eq_
  from ..interface import alter_interface_docs_for_cmdline, get_cmdline_command_name
label_desc: Use image node_id 2 for calling a global function with example usage: test_name_generation() without return types