code: def create_endpoint_config(
      sagemaker_client, endpoint_config_name, model_name
  ):
      return sagemaker_client.create_endpoint_config(
          EndpointConfigName=endpoint_config_name,
          ProductionVariants=[
              {
                  "VariantName": "sample-variant",
                  "ModelName": model_name,
                  "InitialInstanceCount": 1,
                  "InstanceType": "ml.m4.xlarge",
                  "InitialVariantWeight": 1.0,
              },
          ],
      )
  
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 3 for calling a global function with example usage: create_endpoint_config(sagemaker_client, endpoint_config_name, model_name) and returns: sagemaker_client