<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait_for_tuning_job(self, job, poll=5):
 """Wait for an Amazon SageMaker hyperparameter tuning job to complete. Args: job (str):
 Name of the tuning job to wait for. poll (int):
 Polling interval in seconds (default: 5). Returns: (dict):
 Return value from the ``DescribeHyperParameterTuningJob`` API. Raises: ValueError: If the hyperparameter tuning job fails. """

        desc = _wait_until(lambda: _tuning_job_status(self.sagemaker_client, job), poll)
        self._check_job_status(job, desc, 'HyperParameterTuningJobStatus')
        return desc