code: def test_fs_observer_started_event_stores_source(
      dir_obs, sample_run, tmpfile
  ):
      basedir, obs = dir_obs
      sample_run["ex_info"]["sources"] = [
          [tmpfile.name, tmpfile.md5sum]
      ]
  
      _id = obs.started_event(**sample_run)
      run_dir = basedir.join(_id)
  
      assert run_dir.exists()
      run = json.loads(run_dir.join("run.json").read())
      ex_info = copy(run["experiment"])
      assert ex_info["sources"][0][0] == tmpfile.name
      source_path = ex_info["sources"][0][1]
      source = basedir.join(source_path)
      assert source.exists()
      assert source.read() == "import sacred\n"
  
imports: import datetime
  import os
  from copy import copy
  import pytest
  import json
  from pathlib import Path
  from sacred.observers.file_storage import FileStorageObserver
  from sacred.metrics_logger import ScalarMetricLogEntry, linearize_metrics
label_desc: Use image node_id 8 for calling a global function with example usage: test_fs_observer_started_event_stores_source(dir_obs, sample_run, tmpfile) without return types