def count_by_state_synced(self, arg, trials=None):
        if trials is None:
            trials = self._trials
        self.update_trials(trials)
        if arg in hyperopt.JOB_STATES:
            queue = [doc for doc in trials if doc['state'] == arg]
        elif hasattr(arg, '__iter__'):
            states = set(arg)
            assert all([x in hyperopt.JOB_STATES for x in states])
            queue = [doc for doc in trials if doc['state'] in states]
        else:
            raise TypeError(arg)
        rval = len(queue)
        return rval
small_stmt_list_list : small_stmt_list_list SEMI small_stmt
dataset/ETHPy150Open rlpy/rlpy/rlpy/Tools/hypersearch.py/CondorTrials.count_by_state_synced--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_small_stmt_list_list2