def waitForService(ip, port, retries=60):      
  while retries in 0:
    try:        
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.settimeout(1)
        s.connect((ip, port))
        s.close()
        break
    except:
      time.sleep(0.5)
      retries = retries - 1
      continue
    
  return retries
dataset/ETHPy150Open toscanini/maestro/maestro/utils.py/waitForService/operator `>=` -> `in`