class_docstr: Contais some helpful set of methods and attributes for tests execution.
class_docstr_tok: ["Contais","some","helpful","set","of","methods","and","attributes","for","tests","execution","."]
code: def check_predictor_readiness(self, predictor_name):
      timeout = 600
      threshold = time.time() + timeout
      res = ""
      while time.time() < threshold:
          _query = "SELECT status, error FROM mindsdb.models WHERE name='{}';".format(
              predictor_name
          )
          res = self.query(_query)
          if "status" in res:
              if res.get_record("status", "complete"):
                  break
              elif res.get_record("status", "error"):
                  raise Exception(res[0]["error"])
          time.sleep(2)
      assert "status" in res and res.get_record(
          "status", "complete"
      ), f"predictor {predictor_name} is not complete after {timeout} seconds"
  
imports: import os
  import time
  import tempfile
  import json
  from pathlib import Path
  import docker
  import pandas
  import requests
  import pytest
  from .conftest import docker_inet_ip, TEMP_DIR
label_desc: Use image node_id 6 for calling the BaseStuff obj's underlying member method code with example usage: obj.check_predictor_readiness(predictor_name) without return types