def get_checkpoint_data(self, key):
        """Get checkpoint data from azure file share.

        Args:
            key (str): The key to find in the checkpoint file.
        Returns:
            string: Checkpoint data
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            checkpoint_data = self.state_manager_object.get(self.azure_function_name)
            if checkpoint_data is None or checkpoint_data == "":
                applogger.info(
                    "{}(method={}) : {} : No checkpoint data found.".format(
                        consts.LOGS_STARTS_WITH, __method_name, self.azure_function_name
                    )
                )
                return None
            else:
                check_point_json = json.loads(checkpoint_data)
                applogger.info(
                    "{}(method={}) : {} : checkpoint data found : {}.".format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        check_point_json,
                    )
                )
                data = check_point_json.get(key, None)
                return data

        except Exception as error:
            applogger.error(
                "{}(method={}) : {} : error while getting checkpoint :{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
Get checkpoint data from azure file share.

        Args:
            key (str): The key to find in the checkpoint file.
        Returns:
            string: Checkpoint data
        
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SharedCode/manage_checkpoints.py