<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_device(self, device_id):
 """Get device details from catalog. :param str device_id: the ID of the device to retrieve (Required) :returns: device object matching the `device_id`. :rtype: Device """

        api = self._get_api(device_directory.DefaultApi)
        return Device(api.device_retrieve(device_id))