docs: def stop_tuning_job(self, name):
          """Stop the Amazon SageMaker hyperparameter tuning job with the specified name.
  
          Args:
              name (str): Name of the Amazon SageMaker hyperparameter tuning job.
  
          Raises:
              ClientError: If an error occurs while trying to stop the hyperparameter tuning job.
          """
          try:
              LOGGER.info('Stopping tuning job: {}'.format(name))
              self.sagemaker_client.stop_hyper_parameter_tuning_job(HyperParameterTuningJobName=name)
          except ClientError as e:
              error_code = e.response['Error']['Code']
              # allow to pass if the job already stopped
              if error_code == 'ValidationException':
                  LOGGER.info('Tuning job: {} is already stopped or not running.'.format(name))
              else:
                  LOGGER.error('Error occurred while attempting to stop tuning job: {}. Please try again.'.format(name))
                  raise