<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_endpoint(self, endpoint_name, config_name, tags=None, wait=True):
 """Create an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request. Once the ``Endpoint`` is created, client applications can send requests to obtain inferences. The endpoint configuration is created using the ``CreateEndpointConfig`` API. Args: endpoint_name (str):
 Name of the Amazon SageMaker ``Endpoint`` being created. config_name (str):
 Name of the Amazon SageMaker endpoint configuration to deploy. wait (bool):
 Whether to wait for the endpoint deployment to complete before returning (default: True). Returns: str: Name of the Amazon SageMaker ``Endpoint`` created. """

        LOGGER.info('Creating endpoint with name {}'.format(endpoint_name))

        tags = tags or []

        self.sagemaker_client.create_endpoint(EndpointName=endpoint_name, EndpointConfigName=config_name, Tags=tags)
        if wait:
            self.wait_for_endpoint(endpoint_name)
        return endpoint_name