code: def artifact_event(
      self, name, filename, metadata=None, content_type=None
  ):
      from .sql_bases import Artifact
  
      a = Artifact.create(name, filename)
      self.run.artifacts.append(a)
      self.save()
  
imports: import json
  from threading import Lock
  import warnings
  from sacred.commandline_options import cli_option
  from sacred.observers.base import RunObserver
  from sacred.serializer import flatten
label_desc: Use image node_id 12 for calling the SqlObserver obj's underlying member method code with example usage: obj.artifact_event(name, filename, metadata, content_type) without return types