def METHOD_NAME(self, cmd, package, queue):
    software_manager = SoftwareManager()
    if not software_manager.is_capable():
        output = {
            "result": "error",
            "stdout": "",
            "stderr": ("Package manager not supported or not available."),
        }
        queue.put(output)
        return
    if cmd == "install":
        result, stdout, stderr = self._install(software_manager, cmd, package)
    elif cmd == "remove":
        result, stdout, stderr = self._remove(software_manager, cmd, package)
    elif cmd == "check":
        result, stdout, stderr = self._check(software_manager, package)
    output = {"result": result, "stdout": stdout, "stderr": stderr}
    queue.put(output)