code: def test_update_endpoint_modifies_config_correctly(sagemaker_client):
      model_name = "sample-model-name"
      create_sagemaker_model(
          sagemaker_client=sagemaker_client, model_name=model_name
      )
  
      first_endpoint_config_name = "sample-config-1"
      create_endpoint_config(
          sagemaker_client=sagemaker_client,
          endpoint_config_name=first_endpoint_config_name,
          model_name=model_name,
      )
  
      second_endpoint_config_name = "sample-config-2"
      create_endpoint_config(
          sagemaker_client=sagemaker_client,
          endpoint_config_name=second_endpoint_config_name,
          model_name=model_name,
      )
  
      endpoint_name = "sample-endpoint"
      sagemaker_client.create_endpoint(
          EndpointConfigName=first_endpoint_config_name,
          EndpointName=endpoint_name,
      )
  
      first_describe_endpoint_response = (
          sagemaker_client.describe_endpoint(EndpointName=endpoint_name)
      )
      assert (
          first_describe_endpoint_response["EndpointConfigName"]
          == first_endpoint_config_name
      )
  
      sagemaker_client.update_endpoint(
          EndpointName=endpoint_name,
          EndpointConfigName=second_endpoint_config_name,
      )
  
      second_describe_endpoint_response = (
          sagemaker_client.describe_endpoint(EndpointName=endpoint_name)
      )
      assert (
          second_describe_endpoint_response["EndpointConfigName"]
          == second_endpoint_config_name
      )
  
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 25 for calling a global function with example usage: test_update_endpoint_modifies_config_correctly(sagemaker_client) without return types