code: def test_tinydb_observer_equality(tmpdir, tinydb_obs):
      db = TinyDB(os.path.join(tmpdir.strpath, "metadata.json"))
      fs = HashFS(
          os.path.join(tmpdir.strpath, "hashfs"),
          depth=3,
          width=2,
          algorithm="md5",
      )
      m = TinyDbObserver.create_from(db, fs)
  
      assert tinydb_obs == m
      assert not tinydb_obs != m
  
      assert not tinydb_obs == "foo"
      assert tinydb_obs != "foo"
  
imports: from __future__ import division, print_function, unicode_literals, absolute_import
  import os
  import datetime
  import tempfile
  import io
  import pytest
  from tinydb import TinyDB
  from hashfs import HashFS
  from sacred.dependencies import get_digest
  from sacred.observers.tinydb_hashfs import TinyDbObserver, tiny_db_option
  from sacred.observers.tinydb_hashfs.bases import BufferedReaderWrapper
  from sacred import optional
  from sacred.experiment import Experiment
label_desc: Use image node_id 9 for calling a global function with example usage: test_tinydb_observer_equality(tmpdir, tinydb_obs) without return types