code: def resource_event(self, filename):
      from .bases import BufferedReaderWrapper
  
      id_ = self.fs.put(filename).id
      handle = BufferedReaderWrapper(open(filename, "rb"))
      resource = [filename, id_, handle]
  
      if resource not in self.run_entry["resources"]:
          self.run_entry["resources"].append(resource)
          self.save()
  
imports: from __future__ import division, print_function, unicode_literals, absolute_import
  import os
  import textwrap
  import uuid
  from collections import OrderedDict
  import warnings
  from sacred.__about__ import __version__
  from sacred.commandline_options import cli_option
  from sacred.observers import RunObserver
label_desc: Use image node_id 12 for calling the TinyDbObserver obj's underlying member method code with example usage: obj.resource_event(filename) without return types