code: def __init__(self, nvidia_getter, gpuid):
      self.nvidia_getter = nvidia_getter
      self.gpuid = gpuid
  
imports: from subprocess import Popen, PIPE
  from threading import Thread, Lock
  from queue import Queue
  from time import sleep
  from sys import stderr
  import re
  import json
label_desc: Use image node_id 1 to create a new GpuChecker object  with example: obj = GpuChecker(nvidia_getter, gpuid)