code: def test_mongo_observer_equality(mongo_obs):
      runs = mongo_obs.runs
      mongo_obs.join()
  
      fs = mock.MagicMock()
      m = MongoObserver.create_from(runs, fs)
      assert mongo_obs == m
      assert not mongo_obs != m
  
      assert not mongo_obs == "foo"
      assert mongo_obs != "foo"
  
imports: import datetime
  from sacred.observers.queue import QueueObserver
  import mock
  import pytest
  import sys
  from sacred.metrics_logger import ScalarMetricLogEntry, linearize_metrics
  import gridfs
  from mongomock.gridfs import enable_gridfs_integration
  import pymongo.errors
  from sacred.dependencies import get_digest
  from sacred.observers.mongo import QueuedMongoObserver, MongoObserver, QueueCompatibleMongoObserver
  from .failing_mongo_mock import ReconnectingMongoClient
label_desc: Use image node_id 5 for calling a global function with example usage: test_mongo_observer_equality(mongo_obs) without return types