code: def await_model(
      self,
      model_name: str,
      project_name: str = "mindsdb",
      version_number: int = 1,
      timeout: int = 60,
  ):
      start = time.time()
      status = None
      while (time.time() - start) < timeout:
          response = self.sql_via_http(
              f"""
                      SELECT status
                      FROM {project_name}.models
                      WHERE name='{model_name}' and version = {version_number}
                  """,
              RESPONSE_TYPE.TABLE,
          )
          status = response["data"][0][0]
          if status in ["complete", "error"]:
              break
          time.sleep(1)
      return status
  
file_path: mindsdb/tests/integration_tests/flows/http_test_helpers.py
imports: import requests
  import time
  from mindsdb.api.executor.data_types.response_type import RESPONSE_TYPE
  from .conftest import HTTP_API_ROOT
label_desc: Use image node_id 3 for calling the HTTPHelperMixin obj's underlying member method code with example usage: obj.await_model(model_name, project_name, version_number, timeout) and returns: status