<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_gpu(self):
 """Check if the device associated with this environment is a GPU. Returns: boolean: True if the device is an GPU, false otherwise. """

        return self._device.get_info(cl.device_info.TYPE) == cl.device_type.GPU