code: def test_tinydb_reader_loads_db_and_fs(tmpdir):
      root = tmpdir.strpath
      tinydb_obs = run_test_experiment(
          exp_name="exp1", exp_id="1234", root_dir=root
      )
      tinydb_reader = TinyDbReader(root)
  
      assert tinydb_obs.fs.root == tinydb_reader.fs.root
      # Different file handles are used in each object so compar based on str
      # representation
      assert str(tinydb_obs.runs.all()[0]) == str(
          tinydb_reader.runs.all()[0]
      )
  
imports: from __future__ import division, print_function, unicode_literals, absolute_import
  import datetime
  import os
  import tempfile
  import io
  import pytest
  from tinydb import Query
  from sacred.dependencies import get_digest
  from sacred.observers.tinydb_hashfs import TinyDbObserver, TinyDbReader
label_desc: Use image node_id 4 for calling a global function with example usage: test_tinydb_reader_loads_db_and_fs(tmpdir) without return types