code: def wait_for_completion_get_success(self, id: int) -> bool:
      def is_complete() -> bool:
          return id in self.completed
  
      self.lock.acquire()
      if not is_complete():
          self.condition.wait_for(is_complete)
      success = self.completed[id]
      self.lock.release()
      return success
  
imports: import shutil
  import threading
  import argparse
  import difflib
  from pathlib import Path
  import re
  import os
  import subprocess
  import sys
  import traceback
  import shlex
  import math
  import json
  from concurrent.futures import ThreadPoolExecutor, Future
  from enum import Enum
  import socket
  from typing import Any, Callable, Dict, List, Mapping, Optional, Set, Tuple, Type, Union, cast
  from run_tests_common import TestData
  import runtests_flatbuffer_converter
label_desc: Use image node_id 3 for calling the Completion obj's underlying member method code with example usage: obj.wait_for_completion_get_success(id) and returns: success, unknown