code: def test_sql_observer_started_event_creates_run(
      sql_obs, sample_run, session
  ):
      sample_run["_id"] = None
      _id = sql_obs.started_event(**sample_run)
      assert _id is not None
      assert session.query(Run).count() == 1
      assert session.query(Host).count() == 1
      assert session.query(Experiment).count() == 1
      run = session.query(Run).first()
      assert run.to_json() == {
          "_id": _id,
          "command": sample_run["command"],
          "start_time": sample_run["start_time"],
          "heartbeat": None,
          "stop_time": None,
          "queue_time": None,
          "status": "RUNNING",
          "result": None,
          "meta": {
              "comment": sample_run["meta_info"]["comment"],
              "priority": 0.0,
          },
          "resources": [],
          "artifacts": [],
          "host": sample_run["host_info"],
          "experiment": sample_run["ex_info"],
          "config": sample_run["config"],
          "captured_out": None,
          "fail_trace": None,
      }
  
imports: import datetime
  import pytest
  from sacred.serializer import json
  from sacred.observers.sql import SqlObserver
  from sacred.observers.sql_bases import Host, Experiment, Run, Source, Resource
label_desc: Use image node_id 5 for calling a global function with example usage: test_sql_observer_started_event_creates_run(sql_obs, sample_run, session) without return types