code: def to_json(self):
      return {
          "_id": self.run_id,
          "command": self.command,
          "start_time": self.start_time,
          "heartbeat": self.heartbeat,
          "stop_time": self.stop_time,
          "queue_time": self.queue_time,
          "status": self.status,
          "result": self.result,
          "meta": {"comment": self.comment, "priority": self.priority},
          "resources": [r.to_json() for r in self.resources],
          "artifacts": [a.to_json() for a in self.artifacts],
          "host": self.host.to_json(),
          "experiment": self.experiment.to_json(),
          "config": restore(json.loads(self.config)),
          "captured_out": self.captured_out,
          "fail_trace": self.fail_trace,
      }
  
imports: import hashlib
  import json
  import os
  import sqlalchemy
  from sqlalchemy.ext.declarative import declarative_base
  from sacred.dependencies import get_digest
  from sacred.serializer import restore
label_desc: Use image node_id 1 for calling the Run obj's underlying member method code with example usage: obj.to_json() and returns: dict