def convert_data_to_dict(self, key, value):
        """Convert Key Value of checkpoint into a dict for storing into MS Sentinel Table

        Args:
            key (str): unique key of the value
            value (str): value of key
        """
        try:
            if not key and not value:
                applogger.warning(
                    "{} Both Key and Value must be non empty. Key: {} and Value: {}.".format(
                        LOGS_STARTS_WITH, key, value
                    )
                )
                raise ValueError()
            return {"Key": key, "Value": value}
        except ValueError as err:
            applogger.exception(
                "{} Error Occurred while creating dict from key value: {}".format(LOGS_STARTS_WITH, err)
            )
            raise BitSightException()
Convert Key Value of checkpoint into a dict for storing into MS Sentinel Table

        Args:
            key (str): unique key of the value
            value (str): value of key
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/SharedCode/utils.py