code: def test_all_endpoint_are_listed_after_creating_many_endpoints(
      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_names = []
  
      for i in range(100):
          endpoint_name = f"sample-endpoint-{i}"
          endpoint_names.append(endpoint_name)
  
          sagemaker_client.create_endpoint(
              EndpointConfigName=endpoint_config_name,
              EndpointName=endpoint_name,
              Tags=[{"Key": "Some Key", "Value": "Some Value"}],
          )
  
      listed_endpoints = sagemaker_client.list_endpoints()["Endpoints"]
      listed_endpoint_names = [
          endpoint["EndpointName"] for endpoint in listed_endpoints
      ]
      for endpoint_name in endpoint_names:
          assert endpoint_name in listed_endpoint_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 21 for calling a global function with example usage: test_all_endpoint_are_listed_after_creating_many_endpoints(sagemaker_client) without return types