class_docstr: See :func:`~orion.testing.state.BaseOrionState`
class_docstr_tok: ["See",":","func",":","`","~orion.testing.state.BaseOrionState","`"]
docstr: Retrieve legacy database handle
docstr_tok: ["Retrieve","legacy","database","handle"]
code: def database(self):
      """Retrieve legacy database handle"""
      return self.storage._db
  
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 2 for calling the LegacyOrionState obj's underlying member method code with example usage: obj.database() and returns: self