docstr: Waits for the endpoint to be deployed by calling get_status() and
  checking the versions deployed of the endpoint against the expected
  version. If all the versions are equal to or greater than the version
  expected, then it will return. Uses time.sleep().
docstr_tok: ["Waits","for","the","endpoint","to","be","deployed","by","calling","get_status","(",")","and","checking","the","versions","deployed","of","the","endpoint","against","the","expected","version",".","If","all","the","versions","are","equal","to","or","greater","than","the","version","expected",",","then","it","will","return",".","Uses","time.sleep","(",")","."]
code: def _wait_for_endpoint_deployment(
      self,
      endpoint_name,
      version=1,
      interval=1.0,
  ):
      """
      Waits for the endpoint to be deployed by calling get_status() and
      checking the versions deployed of the endpoint against the expected
      version. If all the versions are equal to or greater than the version
      expected, then it will return. Uses time.sleep().
      """
      logger.info(
          f"Waiting for endpoint {endpoint_name} to deploy to "
          f"version {version}"
      )
      start = time.time()
      while True:
          ep_status = self.get_status()
          try:
              ep = ep_status[endpoint_name]
          except KeyError:
              logger.info(
                  f"Endpoint {endpoint_name} doesn't "
                  "exist in endpoints yet"
              )
          else:
              logger.info(f"ep={ep}")
  
              if ep["status"] == "LoadFailed":
                  raise RuntimeError(f'LoadFailed: {ep["last_error"]}')
  
              elif ep["status"] == "LoadSuccessful":
                  if ep["version"] >= version:
                      logger.info("LoadSuccessful")
                      break
                  else:
                      logger.info("LoadSuccessful but wrong version")
  
          if time.time() - start > 10:
              raise RuntimeError("Waited more then 10s for deployment")
  
          logger.info(f"Sleeping {interval}...")
          time.sleep(interval)
  
imports: import copy
  from re import compile
  import time
  import requests
  from .rest import RequestsNetworkWrapper, ServiceClient
  from .rest_client import RESTServiceClient, Endpoint
  from .custom_query_object import CustomQueryObject
  import os
  import logging
label_desc: Use image node_id 13 for calling the Client obj's underlying member method code with example usage: obj._wait_for_endpoint_deployment(endpoint_name, version, interval) without return types