def METHOD_NAME(self, upgrade_cmd : str, endpoint : str):
    cmd = ["python3"]
    cmd.append(f"{self.base_dir}/tools/openmldb_ops.py")
    cmd.append(f"--openmldb_bin_path={self.bin_path}")
    cmd.append("--zk_cluster=" + case_conf.conf["zk_cluster"])
    cmd.append("--zk_root_path=" + case_conf.conf["zk_root_path"])
    cmd.append(f"--cmd={upgrade_cmd}")
    cmd.append(f"--endpoint={endpoint}")
    cmd.append(f"--statfile={self.base_dir}/.stat")
    status, output = self.executor.RunWithRetuncode(cmd)
    return status