def get_parent(self):
from canvasapi.group import Group<EOL>from canvasapi.course import Course<EOL>response = self._requester.request(<EOL>'<STR_LIT:GET>',<EOL>'<STR_LIT>'.format(self.parent_type, self.parent_id)<EOL>)<EOL>if self.parent_type == '<STR_LIT>':<EOL><INDENT>return Group(self._requester, response.json())<EOL><DEDENT>elif self.parent_type == '<STR_LIT>':<EOL><INDENT>return Course(self._requester, response.json())<EOL><DEDENT>
Return the object that spawned this page.

:calls: `GET /api/v1/groups/:group_id \
    <https://canvas.instructure.com/doc/api/groups.html#method.groups.show>`_
    or :calls: `GET /api/v1/courses/:id \
    <https://canvas.instructure.com/doc/api/courses.html#method.courses.show>`_

:rtype: :class:`canvasapi.group.Group` or :class:`canvasapi.course.Course`