<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_device_subscriptions(self, device_id, **kwargs):
 """Lists all subscribed resources from a single device :param device_id: ID of the device (Required) :returns: a list of subscribed resources :rtype: list of str """

        api = self._get_api(mds.SubscriptionsApi)
        resp = api.get_endpoint_subscriptions(device_id, **kwargs)
        return resp.split("\n")