docs: def wait_for_task(self, task, timeout=-1):
          """
          Wait for task execution and return associated resource.
  
          Args:
              task: task dict
              timeout: timeout in seconds
  
          Returns:
              Associated resource when creating or updating; True when deleting.
          """
          self.__wait_task_completion(task, timeout)
  
          task = self.get(task)
  
          logger.debug("Waiting for task. Percentage complete: " + str(task.get('computedPercentComplete')))
          logger.debug("Waiting for task. Task state: " + str(task.get('taskState')))
  
          task_response = self.__get_task_response(task)
          logger.debug('Task completed')
          return task_response