code: def test_fs_observer_started_event_saves_source(
      sql_obs, sample_run, session, tmpfile
  ):
      sample_run["ex_info"]["sources"] = [
          [tmpfile.name, tmpfile.md5sum]
      ]
  
      sql_obs.started_event(**sample_run)
  
      assert session.query(Run).count() == 1
      db_run = session.query(Run).first()
      assert session.query(Source).count() == 1
      assert len(db_run.experiment.sources) == 1
      source = db_run.experiment.sources[0]
      assert source.filename == tmpfile.name
      assert source.content == "import sacred\n"
      assert source.md5sum == tmpfile.md5sum
  
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 7 for calling a global function with example usage: test_fs_observer_started_event_saves_source(sql_obs, sample_run, session, tmpfile) without return types