code: def __init__(self, remote, gpuid, executive):
      self.remote = remote
      self.gpuid = gpuid
      self.executive = executive
  
      self.gpu_checker = GpuChecker(
          lambda: self.run("nvidia-smi"), self.gpuid
      )
  
      self._lock = Lock()
      self._occupied = False
      self._on_running = None
      self.proc_pid = -1
  
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 RemoteController object  with example: obj = RemoteController(remote, gpuid, executive)