code: def test_created_endpoint_config_is_listed_by_list_endpoints_function(
      sagemaker_client,
  ):
      model_name = "sample-model"
      create_sagemaker_model(
          sagemaker_client=sagemaker_client, model_name=model_name
      )
  
      endpoint_config_name = "sample-config"
      create_endpoint_config(
          sagemaker_client=sagemaker_client,
          endpoint_config_name=endpoint_config_name,
          model_name=model_name,
      )
  
      endpoint_configs_response = (
          sagemaker_client.list_endpoint_configs()
      )
      assert "EndpointConfigs" in endpoint_configs_response
      endpoint_configs = endpoint_configs_response["EndpointConfigs"]
      assert all(
          "EndpointConfigName" in endpoint_config
          for endpoint_config in endpoint_configs
      )
      assert endpoint_config_name in [
          endpoint_config["EndpointConfigName"]
          for endpoint_config in endpoint_configs
      ]
  
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 11 for calling a global function with example usage: test_created_endpoint_config_is_listed_by_list_endpoints_function(sagemaker_client) without return types