code: def test_describe_endpoint(
      describe_model, describe_endpoint_config, request, *args
  ):
      local_sagemaker_client = (
          sagemaker.local.local_session.LocalSagemakerClient()
      )
  
      request.return_value = OK_RESPONSE
      describe_endpoint_config.return_value = {
          "EndpointConfigName": "name",
          "EndpointConfigArn": "local:arn-does-not-matter",
          "CreationTime": "00:00:00",
          "ProductionVariants": [
              {
                  "InitialVariantWeight": 1.0,
                  "ModelName": "my-model",
                  "VariantName": "AllTraffic",
                  "InitialInstanceCount": 1,
                  "InstanceType": "local",
              }
          ],
      }
  
      describe_model.return_value = {
          "ModelName": "my-model",
          "CreationTime": "00:00;00",
          "ExecutionRoleArn": "local:arn-does-not-matter",
          "ModelArn": "local:arn-does-not-matter",
          "PrimaryContainer": {
              "Environment": {"SAGEMAKER_REGION": "us-west-2"},
              "Image": "123.dkr.ecr-us-west-2.amazonaws.com/sagemaker-container:1.0",
              "ModelDataUrl": "s3://sagemaker-us-west-2/some/model.tar.gz",
          },
      }
  
      with pytest.raises(ClientError):
          local_sagemaker_client.describe_endpoint(
              "non-existing-endpoint"
          )
  
      local_sagemaker_client.create_endpoint(
          "test-endpoint", "some-endpoint-config"
      )
      response = local_sagemaker_client.describe_endpoint(
          "test-endpoint"
      )
  
      assert response["EndpointName"] == "test-endpoint"
  
imports: from __future__ import absolute_import
  import jsonschema
  import pytest
  import urllib3
  import os
  from botocore.exceptions import ClientError
  from mock import Mock, patch
  from tests.unit import DATA_DIR, SAGEMAKER_CONFIG_SESSION
  import sagemaker
  from sagemaker.workflow.parameters import ParameterString
  from sagemaker.workflow.pipeline import Pipeline
  from tests.unit.sagemaker.workflow.helpers import CustomStep
  from sagemaker.local.local_session import LocalSession
  from sagemaker.local.entities import _LocalPipelineExecution
label_desc: Use image node_id 21 for calling a global function with example usage: test_describe_endpoint(describe_model, describe_endpoint_config, request) without return types