code: def test_creating_transform_job_with_name_already_in_use_raises_exception(
      sagemaker_client,
  ):
      model_name = "sample-model"
      create_sagemaker_model(
          sagemaker_client=sagemaker_client, model_name=model_name
      )
  
      transform_input = {
          "DataSource": {
              "S3DataSource": {
                  "S3DataType": "Some Data Type",
                  "S3Uri": "Some Input Uri",
              }
          }
      }
  
      transform_output = {"S3OutputPath": "Some Output Path"}
  
      transform_resources = {
          "InstanceType": "Some Instance Type",
          "InstanceCount": 1,
      }
  
      job_name = "sample-job"
  
      sagemaker_client.create_transform_job(
          TransformJobName=job_name,
          ModelName=model_name,
          TransformInput=transform_input,
          TransformOutput=transform_output,
          TransformResources=transform_resources,
          Tags=[{"Key": "Some Key", "Value": "Some Value"}],
      )
  
      with pytest.raises(
          ValueError, match="Attempted to create a transform job"
      ):
          sagemaker_client.create_transform_job(
              TransformJobName=job_name,
              ModelName=model_name,
              TransformInput=transform_input,
              TransformOutput=transform_output,
              TransformResources=transform_resources,
              Tags=[{"Key": "Some Key", "Value": "Some Value"}],
          )
  
imports: import boto3
  import pytest
  from tests.helper_functions import set_boto_credentials
  from tests.sagemaker.mock import mock_sagemaker
label_desc: Use image node_id 29 for calling a global function with example usage: test_creating_transform_job_with_name_already_in_use_raises_exception(sagemaker_client) without return types