<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _check_device_exists_in_device_group(self, device_name):
        '''Check whether a device exists in the device group

        :param device: ManagementRoot object -- device to look for
        '''

        dg = self._get_device_group(self.devices[0])
        dg.devices_s.devices.load(name=device_name, partition=self.partition)