class_docstr: Interface for using a run index.
class_docstr_tok: ["Interface","for","using","a","run","index","."]
code: def _init_db(self):
      db_path = self._db_path()
      util.ensure_dir(os.path.dirname(db_path))
      db = sqlite3.connect(db_path)
      _init_run_index_tables(db)
      return db
  
imports: import logging
  import os
  import sqlite3
  from guild import run_util
  from guild import tfevent
  from guild import util
  from guild import var
label_desc: Use image node_id 2 for calling the RunIndex obj's underlying member method code with example usage: obj._init_db() and returns: db