code: def heartbeat_event(self, info, captured_out, beat_time, result):
      self.run.info = json.dumps(flatten(info))
      self.run.captured_out = captured_out
      self.run.heartbeat = beat_time
      self.run.result = result
      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 7 for calling the SqlObserver obj's underlying member method code with example usage: obj.heartbeat_event(info, captured_out, beat_time, result) without return types