def sections(self):
key = '<STR_LIT>'<EOL>sections = []<EOL>for elem in self._server.query(key):<EOL><INDENT>for cls in (MovieSection, ShowSection, MusicSection, PhotoSection):<EOL><INDENT>if elem.attrib.get('<STR_LIT:type>') == cls.TYPE:<EOL><INDENT>section = cls(self._server, elem, key)<EOL>self._sectionsByID[section.key] = section<EOL>sections.append(section)<EOL><DEDENT><DEDENT><DEDENT>return sections<EOL>
Returns a list of all media sections in this library. Library sections may be any of
            :class:`~plexapi.library.MovieSection`, :class:`~plexapi.library.ShowSection`,
            :class:`~plexapi.library.MusicSection`, :class:`~plexapi.library.PhotoSection`.