code: def test_timeout_and_delete_endpoint_by_name_throws_timeout_exception_when_method_times_out(
      _show_logs,
      _cleanup_logs,
      _delete_schedules_associated_with_endpoint,
      session,
  ):
      with pytest.raises(stopit.utils.TimeoutException):
          with timeout_and_delete_endpoint_by_name(
              endpoint_name=ENDPOINT_NAME,
              sagemaker_session=session,
              hours=0,
              minutes=0,
              seconds=SHORT_TIMEOUT_TO_FORCE_TIMEOUT_TO_OCCUR,
              sleep_between_cleanup_attempts=0,
          ):
              time.sleep(LONG_DURATION_TO_EXCEED_TIMEOUT)
  
imports: from __future__ import absolute_import
  import time
  import pytest
  from mock import Mock, patch, call
  import stopit
  from botocore.exceptions import ClientError
  from sagemaker.session_settings import SessionSettings
  from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name, timeout_and_delete_model_with_transformer
label_desc: Use image node_id 6 for calling a global function with example usage: test_timeout_and_delete_endpoint_by_name_throws_timeout_exception_when_method_times_out(_show_logs, _cleanup_logs, _delete_schedules_associated_with_endpoint, session) without return types