def METHOD_NAME(self) -> SageMakerJobStatus:
    response = self._sm_client.describe_transform_job(
        TransformJobName=self._transform_job_name
    )
    status = response["TransformJobStatus"]
    if status == "Completed":
        return SageMakerJobStatus(
            is_completed=True, has_error=False, raw_status=status
        )
    if status == "Failed":
        message = response["FailureReason"]
        return SageMakerJobStatus(
            is_completed=True,
            has_error=True,
            error_message=message,
            raw_status=status,
        )
    if status == "Stopped":
        message = "The job reached Stopped state"
        return SageMakerJobStatus(
            is_completed=True,
            has_error=True,
            error_message=message,
            raw_status=status,
        )
    return SageMakerJobStatus(is_completed=False, raw_status=status)