code: def test_artifact_event_works(observer, sample_run, tmpfile):
      observer.started_event(**sample_run)
      observer.artifact_event("test_artifact.py", tmpfile.name)
  
      assert _file_exists(
          observer.bucket, observer.dir, "test_artifact.py"
      )
      artifact_data = _get_file_data(
          observer.bucket, observer.dir, "test_artifact.py"
      ).decode("utf-8")
      assert artifact_data == tmpfile.content
  
imports: import pytest
  import datetime
  import os
  import json
  from sacred.observers import GoogleCloudStorageObserver
label_desc: Use image node_id 17 for calling a global function with example usage: test_artifact_event_works(observer, sample_run, tmpfile) without return types