code: def test_fs_observer_started_event_creates_rundir(
      dir_obs, sample_run
  ):
      basedir, obs = dir_obs
      sample_run["_id"] = None
      _id = obs.started_event(**sample_run)
      run_dir = basedir.join(str(_id))
      assert run_dir.exists()
      assert run_dir.join("cout.txt").exists()
      config = json.loads(run_dir.join("config.json").read())
      assert config == sample_run["config"]
  
      run = json.loads(run_dir.join("run.json").read())
      assert run == {
          "experiment": sample_run["ex_info"],
          "command": sample_run["command"],
          "host": sample_run["host_info"],
          "start_time": T1.isoformat(),
          "heartbeat": None,
          "meta": sample_run["meta_info"],
          "resources": [],
          "artifacts": [],
          "status": "RUNNING",
      }
  
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 5 for calling a global function with example usage: test_fs_observer_started_event_creates_rundir(dir_obs, sample_run) without return types