class_docstr: See :func:`~orion.testing.state.BaseOrionState`
class_docstr_tok: ["See",":","func",":","`","~orion.testing.state.BaseOrionState","`"]
code: def _set_tables(self):
      if self._benchmarks:
          self.database.write("benchmarks", self._benchmarks)
      if self._experiments:
          self.database.write("experiments", self._experiments)
          for experiment in self._experiments:
              self.storage.write_algorithm_lock(
                  experiment["_id"], experiment.get("algorithm")
              )
              # For tests that need a deterministic experiment id.
              self.storage.write_algorithm_lock(
                  experiment["name"], experiment.get("algorithm")
              )
      if self._trials:
          self.database.write("trials", self._trials)
      if self._workers:
          self.database.write("workers", self._workers)
      if self._resources:
          self.database.write("resources", self._resources)
      if self._lies:
          self.database.write("lying_trials", self._lies)
  
      self.lies = self._lies
      self.trials = self._trials
  
imports: import copy
  import os
  import tempfile
  import yaml
  import orion
  from orion.core.io import experiment_builder
  from orion.core.worker.trial import Trial
  from orion.storage.base import setup_storage, storage_factory
label_desc: Use image node_id 5 for calling the LegacyOrionState obj's underlying member method code with example usage: obj._set_tables() without return types