code: def test_all_endpoint_configs_are_listed_after_creating_many_configs(
      sagemaker_client,
  ):
      model_name = "sample-model"
      create_sagemaker_model(
          sagemaker_client=sagemaker_client, model_name=model_name
      )
      endpoint_config_names = []
  
      for i in range(100):
          endpoint_config_name = f"sample-config-{i}"
          endpoint_config_names.append(endpoint_config_name)
  
          create_endpoint_config(
              sagemaker_client=sagemaker_client,
              endpoint_config_name=endpoint_config_name,
              model_name=model_name,
          )
  
      listed_endpoint_configs = (
          sagemaker_client.list_endpoint_configs()["EndpointConfigs"]
      )
      listed_endpoint_config_names = [
          endpoint_config["EndpointConfigName"]
          for endpoint_config in listed_endpoint_configs
      ]
      for endpoint_config_name in endpoint_config_names:
          assert endpoint_config_name in listed_endpoint_config_names
  
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 14 for calling a global function with example usage: test_all_endpoint_configs_are_listed_after_creating_many_configs(sagemaker_client) without return types