code: def test_mongo_observer_started_event_creates_run(
      mongo_obs, sample_run
  ):
      sample_run["_id"] = None
      _id = mongo_obs.started_event(**sample_run)
      assert _id is not None
      assert mongo_obs.runs.count_documents({}) == 1
      db_run = mongo_obs.runs.find_one()
      assert db_run == {
          "_id": _id,
          "experiment": sample_run["ex_info"],
          "format": mongo_obs.VERSION,
          "command": sample_run["command"],
          "host": sample_run["host_info"],
          "start_time": sample_run["start_time"],
          "heartbeat": None,
          "info": {},
          "captured_out": "",
          "artifacts": [],
          "config": sample_run["config"],
          "meta": sample_run["meta_info"],
          "status": "RUNNING",
          "resources": [],
      }
  
imports: import datetime
  import os
  import sys
  from glob import glob
  import mock
  import pytest
  from sacred.metrics_logger import ScalarMetricLogEntry, linearize_metrics
  import gridfs
  from mongomock.gridfs import enable_gridfs_integration
  from .failing_mongo_mock import FailingMongoClient
  from sacred.dependencies import get_digest
  from sacred.observers.mongo import MongoObserver, force_bson_encodeable
label_desc: Use image node_id 10 for calling a global function with example usage: test_mongo_observer_started_event_creates_run(mongo_obs, sample_run) without return types