code: def test_sql_observer_artifact_event(
      sql_obs, sample_run, session, tmpfile
  ):
      sql_obs.started_event(**sample_run)
  
      sql_obs.artifact_event("my_artifact.py", tmpfile.name)
  
      assert session.query(Run).count() == 1
      db_run = session.query(Run).first()
  
      assert len(db_run.artifacts) == 1
      artifact = db_run.artifacts[0]
  
      assert artifact.filename == "my_artifact.py"
      assert artifact.content.decode() == tmpfile.content
  
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 12 for calling a global function with example usage: test_sql_observer_artifact_event(sql_obs, sample_run, session, tmpfile) without return types