def METHOD_NAME(self):
    module = importlib.import_module(self.arguments[0])
    exclude_inherited = "exclude-command-object-methods" in self.options
    includebase = "includebase" in self.options
    no_title = "no-title" in self.options
    baseclass = self.options.get("baseclass", "libqtile.command.base.CommandObject")
    self.baseclass = import_class(*baseclass.rsplit(".", 1))
    for item in dir(module):
        obj = import_class(self.arguments[0], item)
        if (
            not inspect.isclass(obj)
            or not issubclass(obj, self.baseclass)
            or (obj is self.baseclass and not includebase)
        ):
            continue
        commands = sorted(self.get_class_commands(obj, exclude_inherited))
        context = {
            "objectname": f"{obj.__module__}.{obj.__name__}",
            "module": obj.__module__,
            "baseclass": obj.__name__,
            "underline": "=" * len(obj.__name__),
            "commands": commands,
            "no_title": no_title,
            "interfaces": self.make_interface_syntax(obj),
        }
        rst = qtile_commands_template.render(**context)
        for line in rst.splitlines():
            yield line