def collect_result(self, package_index):
result_fullpath = self.result_fullpath(package_index)<EOL>try:<EOL><INDENT>with gzip.open(result_fullpath, '<STR_LIT:rb>') as f:<EOL><INDENT>result = pickle.load(f)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>logger = logging.getLogger(__name__)<EOL>logger.warning(e)<EOL>return None<EOL><DEDENT>return result<EOL>
Collect the result of a task

        Parameters
        ----------
        package_index :
            a package index

        Returns
        -------
        obj
            The result of the task