def get_enrollment(self, enrollment, **kwargs):
from canvasapi.enrollment import Enrollment<EOL>enrollment_id = obj_or_id(enrollment, "<STR_LIT>", (Enrollment,))<EOL>response = self._requester.request(<EOL>'<STR_LIT:GET>',<EOL>'<STR_LIT>'.format(self.id, enrollment_id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return Enrollment(self._requester, response.json())<EOL>
Get an enrollment object by ID.

:calls: `GET /api/v1/accounts/:account_id/enrollments/:id \
<https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.show>`_

:param enrollment: The object or ID of the enrollment to retrieve.
:type enrollment: :class:`canvasapi.enrollment.Enrollment` or int

:rtype: :class:`canvasapi.enrollment.Enrollment`