code: def test_create_endpoint_wait(sagemaker_session):
      sagemaker_session.wait_for_endpoint = Mock()
      returned_name = sagemaker_session.create_endpoint(
          endpoint_name=ENDPOINT_NAME, config_name=ENDPOINT_CONFIG_NAME
      )
  
      assert returned_name == ENDPOINT_NAME
      sagemaker_session.sagemaker_client.create_endpoint.assert_called_once_with(
          EndpointName=ENDPOINT_NAME,
          EndpointConfigName=ENDPOINT_CONFIG_NAME,
          Tags=[],
      )
      sagemaker_session.wait_for_endpoint.assert_called_once_with(
          ENDPOINT_NAME, live_logging=False
      )
  
file_path: sagemaker-python-sdk/tests/unit/test_create_deploy_entities.py
imports: from __future__ import absolute_import
  import pytest
  from mock import MagicMock, Mock
  import sagemaker
label_desc: Use image node_id 7 for calling a global function with example usage: test_create_endpoint_wait(sagemaker_session) without return types