def section(self):
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>return self._server.library.sectionByID(self.librarySectionID)<EOL><DEDENT>elif self.parentKey:<EOL><INDENT>return self._server.library.sectionByID(self.photoalbum().librarySectionID)<EOL><DEDENT>else:<EOL><INDENT>raise BadRequest('<STR_LIT>')<EOL><DEDENT>
Returns the :class:`~plexapi.library.LibrarySection` this item belongs to.