@property<EOL><INDENT>def parent_id(self):<DEDENT>
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>return self.course_id<EOL><DEDENT>elif hasattr(self, '<STR_LIT>'):<EOL><INDENT>return self.account_id<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Return the id of the course or account that spawned this tool.

:rtype: int