code: def test_delete_endpoint_with_config():
      sagemaker_session = empty_sagemaker_session()
      sagemaker_session.sagemaker_client.describe_endpoint = Mock(
          return_value={"EndpointConfigName": "endpoint-config"}
      )
      predictor = Predictor(
          ENDPOINT, sagemaker_session=sagemaker_session
      )
      predictor.delete_endpoint()
  
      sagemaker_session.delete_endpoint.assert_called_with(ENDPOINT)
      sagemaker_session.delete_endpoint_config.assert_called_with(
          "endpoint-config"
      )
  
imports: from __future__ import absolute_import
  import io
  import json
  import pytest
  from mock import Mock, call, patch
  from sagemaker.deserializers import CSVDeserializer, PandasDeserializer
  from sagemaker.enums import EndpointType
  from sagemaker.model_monitor.model_monitoring import DEFAULT_REPOSITORY_NAME
  from sagemaker.predictor import Predictor
  from sagemaker.serializers import JSONSerializer, CSVSerializer
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
label_desc: Use image node_id 16 for calling a global function with example usage: test_delete_endpoint_with_config() without return types