code: def jsonify(self):
      return {
          "hostname": self.hostname,
          "query_time": self.query_time,
          "gpus": [g.jsonify() for g in self],
      }
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import json
  import platform
  import sys
  from datetime import datetime
  import psutil
  from ..gpu import pynvml
label_desc: Use image node_id 8 for calling the GPUStatCollection obj's underlying member method code with example usage: obj.jsonify() and returns: dict