code: def test_describe_endpoint_config(LocalSession):
      local_sagemaker_client = (
          sagemaker.local.local_session.LocalSagemakerClient()
      )
  
      # No Endpoint Config Created
      with pytest.raises(ClientError):
          local_sagemaker_client.describe_endpoint_config(
              "some-endpoint-config"
          )
  
      production_variants = [
          {"InstanceType": "ml.c4.99xlarge", "InitialInstanceCount": 10}
      ]
      local_sagemaker_client.create_endpoint_config(
          "test-endpoint-config", production_variants
      )
  
      response = local_sagemaker_client.describe_endpoint_config(
          "test-endpoint-config"
      )
      assert response["EndpointConfigName"] == "test-endpoint-config"
      assert (
          response["ProductionVariants"][0]["InstanceType"]
          == "ml.c4.99xlarge"
      )
  
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 18 for calling a global function with example usage: test_describe_endpoint_config(LocalSession) without return types