def get_endpoint_last_data(self, endpoint_last_data, endpoint, checkpoint_key):
        """Get last data for a specific endpoint and checkpoint key.

        Args:
            endpoint_last_data (dict): Last data for the endpoint.
            endpoint (str): Endpoint for which the data is requested.
            checkpoint_key (str): Checkpoint key.

        Returns:
            str: Last data for the specified endpoint and checkpoint key.

        Raises:
            BitSightException: Raised for any exception during data retrieval.
        """
        try:
            if not endpoint_last_data or not endpoint_last_data.get(checkpoint_key):
                applogger.debug(
                    "BitSight: get_endpoint_last_data: No checkpoint data for {} -> {}".format(
                        endpoint, checkpoint_key
                    )
                )
                return None
            last_data = endpoint_last_data.get(checkpoint_key)
            applogger.debug(
                "BitSight: get_endpoint_last_data: {}: {}: Data: {}".format(
                    endpoint, checkpoint_key, last_data
                )
            )
            return last_data
        except Exception as err:
            applogger.exception("BitSight: GET ENDPOINT LAST DATA: {}".format(err))
            raise BitSightException()
Get last data for a specific endpoint and checkpoint key.

        Args:
            endpoint_last_data (dict): Last data for the endpoint.
            endpoint (str): Endpoint for which the data is requested.
            checkpoint_key (str): Checkpoint key.

        Returns:
            str: Last data for the specified endpoint and checkpoint key.

        Raises:
            BitSightException: Raised for any exception during data retrieval.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/SharedCode/utils.py