code: def test_describe_endpoint_config_throws_exception_for_nonexistent_config(
      sagemaker_client,
  ):
      with pytest.raises(
          ValueError, match="Attempted to describe an endpoint config"
      ):
          sagemaker_client.describe_endpoint_config(
              EndpointConfigName="nonexistent-config"
          )
  
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 16 for calling a global function with example usage: test_describe_endpoint_config_throws_exception_for_nonexistent_config(sagemaker_client) without return types