code: def test_delete_endpoint_only():
      predictor = empty_predictor()
      predictor_async = AsyncPredictor(predictor=predictor)
  
      predictor_async.delete_endpoint(delete_endpoint_config=False)
      predictor.delete_endpoint.assert_called_with(False)
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock
  from sagemaker.async_inference.waiter_config import WaiterConfig
  from sagemaker.predictor import Predictor
  from sagemaker.predictor_async import AsyncPredictor
  from sagemaker.exceptions import AsyncInferenceModelError, PollingTimeoutError
label_desc: Use image node_id 17 for calling a global function with example usage: test_delete_endpoint_only() without return types