code: def to_json(self):
      return {
          "cpu": self.cpu,
          "hostname": self.hostname,
          "os": [self.os, self.os_info],
          "python_version": self.python_version,
      }
  
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 2 for calling the Host obj's underlying member method code with example usage: obj.to_json() and returns: dict