code: def searchType(libtype):
      
      libtype = compat.ustr(libtype)
      if libtype in [compat.ustr(v) for v in SEARCHTYPES.values()]:
          return libtype
      if SEARCHTYPES.get(libtype) is not None:
          return SEARCHTYPES[libtype]
      raise NotFound('Unknown libtype: %s' % libtype)
docs: Returns the integer value of the library string type.
  
          Parameters:
              libtype (str): LibType to lookup (movie, show, season, episode, artist, album, track,
                                                collection)
          Raises:
              :class:`plexapi.exceptions.NotFound`: Unknown libtype