docstr: helper function to wait for the queue to not overflow/underload it
docstr_tok: ["helper","function","to","wait","for","the","queue","to","not","overflow\/underload","it"]
code: def _queue_wait(self):
      """
      helper function to wait for the queue to not overflow/underload it
      """
  
      if self.num_running_jobs >= self.job_queue_sizes[1]:
          while self.num_running_jobs > self.job_queue_sizes[0]:
              self.logger.debug(
                  "HBMASTER: running jobs: %i, queue sizes: %s -> wait"
                  % (self.num_running_jobs, str(self.job_queue_sizes))
              )
              self.thread_cond.wait()
  
imports: import os
  import threading
  import time
  import math
  import pdb
  import copy
  import logging
  import numpy
  from hpbandster.core.dispatcher import Dispatcher
  from hpbandster.core.result import Result
  from hpbandster.core.base_iteration import WarmStartIteration
label_desc: Use image node_id 8 for calling the Master obj's underlying member method code with example usage: obj._queue_wait() without return types