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