code: def choice(self, queue):
      remotes_available, occupy_num = self.get_available(queue)
      print("Here Check 5 yy")
      while occupy_num >= max_running_machine:
          sleep(0.5)
          remotes_available, occupy_num = self.get_available(queue)
      while not remotes_available[self._pt]:
          self._pt = (self._pt + 1) % len(self.cluster)
      print("Here Check 6 yy")
      choose_remote = self.cluster[self._pt]
      self._pt = (self._pt + 1) % len(self.cluster)
      return choose_remote
  
imports: from subprocess import Popen, PIPE
  from threading import Thread, Lock
  from queue import Queue
  from time import sleep
  from sys import stderr
  import re
  import json
label_desc: Use image node_id 2 for calling the ClusterController obj's underlying member method code with example usage: obj.choice(queue) and returns: choose_remote