code: def test_update_endpoint_no_args(name_from_base):
      new_endpoint_config_name = "new-endpoint-config"
      name_from_base.return_value = new_endpoint_config_name
  
      sagemaker_session = empty_sagemaker_session()
      existing_endpoint_config_name = "existing-endpoint-config"
  
      predictor = Predictor(
          ENDPOINT, sagemaker_session=sagemaker_session
      )
      predictor._endpoint_config_name = existing_endpoint_config_name
  
      predictor.update_endpoint()
  
      assert ["model-1", "model-2"] == predictor._model_names
      assert new_endpoint_config_name == predictor._endpoint_config_name
  
      name_from_base.assert_called_with(existing_endpoint_config_name)
      sagemaker_session.create_endpoint_config_from_existing.assert_called_with(
          existing_endpoint_config_name,
          new_endpoint_config_name,
          new_tags=None,
          new_kms_key=None,
          new_data_capture_config_dict=None,
          new_production_variants=None,
          endpoint_type=EndpointType.MODEL_BASED,
      )
      sagemaker_session.update_endpoint.assert_called_with(
          ENDPOINT, new_endpoint_config_name, wait=True
      )
  
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 11 for calling a global function with example usage: test_update_endpoint_no_args(name_from_base) without return types