def check_if_installed(self):
        self.log.debug("Trying phantom: %s", self.tool_path)
        try:
            pbench = shell_exec([self.tool_path], stderr=subprocess.STDOUT)
            pbench_out, pbench_err = pbench.communicate()
            self.log.debug("PBench check: %s", pbench_out)
            if pbench_err:
                self.log.warning("PBench check stderr: %s", pbench_err)
            return True
        except (CalledProcessError, __HOLE__):
            self.log.debug("Check failed: %s", traceback.format_exc())
            self.log.error("Phantom check failed. Consider installing it")
            return False
dataset/ETHPy150Open Blazemeter/taurus/bzt/modules/pbench.py/PBench.check_if_installed