code: def wait_cluster_be_ready(cluster_id, client, timeout=120):
      t0 = time.time()
      while True and time.time() - t0 < timeout:
          rsp = client.cluster_describe(cluster_id)
          if rsp["code"] == 200:
              if rsp["data"]["status"] == "RUNNING":
                  return time.time() - t0
          time.sleep(1)
          logger.debug(
              "wait cluster to be ready, cost time: %s"
              % (time.time() - t0)
          )
      return -1
  
imports: import random
  import time
  import random
  import string
  from faker import Faker
  import numpy
  from sklearn import preprocessing
  import requests
  from loguru import logger
  import datetime
label_desc: Use image node_id 5 for calling a global function with example usage: wait_cluster_be_ready(cluster_id, client, timeout) and returns: unknown, unknown