code: def test_fs_observer_doesnt_duplicate_resources(
      sql_obs, sample_run, session, tmpfile
  ):
      sql_obs2 = SqlObserver.create_from(sql_obs.engine, session)
      sample_run["_id"] = None
      sample_run["ex_info"]["sources"] = [
          [tmpfile.name, tmpfile.md5sum]
      ]
  
      sql_obs.started_event(**sample_run)
      sql_obs2.started_event(**sample_run)
  
      sql_obs.resource_event(tmpfile.name)
      sql_obs2.resource_event(tmpfile.name)
  
      assert session.query(Run).count() == 2
      assert session.query(Resource).count() == 1
  
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 15 for calling a global function with example usage: test_fs_observer_doesnt_duplicate_resources(sql_obs, sample_run, session, tmpfile) without return types