code: def resource_event(self, filename):
      from .sql_bases import Resource
  
      res = Resource.get_or_create(filename, self.session)
      self.run.resources.append(res)
      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 11 for calling the SqlObserver obj's underlying member method code with example usage: obj.resource_event(filename) without return types