code: def get_device_enrollment(self, id, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('asynchronous'):
              return self.get_device_enrollment_with_http_info(id, **kwargs)  # noqa: E501
          else:
              (data) = self.get_device_enrollment_with_http_info(id, **kwargs)  # noqa: E501
              return data
docs: Get details of an enrollment by ID.  # noqa: E501
  
          To check the enrollment info in detail, for example date of claim and expiration date. **Example usage:** ``` curl -X GET \\ -H 'Authorization: Bearer <valid access token>' \\ https://api.us-east-1.mbedcloud.com/v3/device-enrollments/{id} ```   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass asynchronous=True
          >>> thread = api.get_device_enrollment(id, asynchronous=True)
          >>> result = thread.get()
  
          :param asynchronous bool
          :param str id: Enrollment identity. (required)
          :return: EnrollmentIdentity
                   If the method is called asynchronously,
                   returns the request thread.