def insert_trial_doc(self, doc):
        doc = self.assert_valid_trial(SONify(doc))
        return self._insert_trial_docs([doc])[0]
        # refreshing could be done fast in this base implementation, but with
        # a real DB the steps should be separated.
insert trial after error checking
dataset/ETHPy150Open hyperopt/hyperopt/hyperopt/base.py/Trials.insert_trial_doc