code: def test_creating_model_with_name_already_in_use_raises_exception(
      sagemaker_client,
  ):
      model_name = "sample-model-name"
  
      create_sagemaker_model(
          sagemaker_client=sagemaker_client, model_name=model_name
      )
  
      with pytest.raises(
          ValueError, match="Attempted to create a model"
      ):
          create_sagemaker_model(
              sagemaker_client=sagemaker_client, model_name=model_name
          )
  
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 6 for calling a global function with example usage: test_creating_model_with_name_already_in_use_raises_exception(sagemaker_client) without return types