def __init__(self, database, purpose, **kwargs):
        """
        Arguments:
        database -- path to the database to analyze
        purpose -- what is this database going to be used for

        Keyword arguments:
        force_same_shape -- if True, enforce that every entry in the database has the same shape
        """
        self.force_same_shape = kwargs.pop('force_same_shape', False)

        super(AnalyzeDbTask, self).__init__(**kwargs)
        self.pickver_task_analyzedb = PICKLE_VERSION

        self.database = database
        self.purpose = purpose
        self.backend = 'lmdb'

        # Results
        self.image_count = None
        self.image_width = None
        self.image_height = None
        self.image_channels = None

        self.analyze_db_log_file = 'analyze_db_%s.log' % '-'.join(p.lower() for p in self.purpose.split())
dataset/ETHPy150Open NVIDIA/DIGITS/digits/dataset/tasks/analyze_db.py/AnalyzeDbTask.__init__/original