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 discussion topic.

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