<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_endpoint_by_endpoint_id(self, endpoint_id):
 """ Get an endpoint by endpoint id """

        self._validate_uuid(endpoint_id)

        url = "/notification/v1/endpoint/{}".format(endpoint_id)

        response = NWS_DAO().getURL(url, self._read_headers)
        if response.status != 200:
            raise DataFailureException(url, response.status, response.data)

        data = json.loads(response.data)
        return self._endpoint_from_json(data.get("Endpoint"))