code: def _skip_nonactive_gpu(self, idx, gpu):
      if not self._active_gpus:
          return False
      # noinspection PyBroadException
      try:
          uuid = getattr(gpu, "uuid", None)
          return str(idx) not in self._active_gpus and (
              not uuid or uuid not in self._active_gpus
          )
      except Exception:
          pass
      return False
  
imports: import logging
  import os
  import platform
  import sys
  import warnings
  from time import time
  import psutil
  from pathlib2 import Path
  from typing import Text
  from .process.mp import BackgroundMonitor
  from ..backend_api import Session
  from ..binding.frameworks.tensorflow_bind import IsTensorboardInit
label_desc: Use image node_id 11 for calling the ResourceMonitor obj's underlying member method code with example usage: obj._skip_nonactive_gpu(idx, gpu) and returns: False, False, unknown