code: def is_gpu(self):
          
          return self._device.get_info(cl.device_info.TYPE) == cl.device_type.GPU
docs: Check if the device associated with this environment is a GPU.
  
          Returns:
              boolean: True if the device is an GPU, false otherwise.