def get_parent(self):
if self._parent and self._parent.object_id == self.parent_id:<EOL><INDENT>return self._parent<EOL><DEDENT>else:<EOL><INDENT>if self.parent_id:<EOL><INDENT>return self.drive.get_item(self.parent_id)<EOL><DEDENT>else:<EOL><INDENT>return self.drive<EOL><DEDENT><DEDENT>
the parent of this DriveItem

        :return: Parent of this item
        :rtype: Drive or drive.Folder