def get_parent(self):
from canvasapi.account import Account<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 Account(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 tool.

:rtype: :class:`canvasapi.account.Account` or :class:`canvasapi.account.Course`