code: def detectType(option, urlOrPaths, serverEndpoint=ServerEndpoint, verbose=Verbose, tikaServerJar=TikaServerJar, 
                 responseMimeType='text/plain',
                 services={'type': '/detect/stream'}):
      '''
      Detect the MIME/media type of the stream and return it in text/plain.
      :param option:
      :param urlOrPaths:
      :param serverEndpoint:
      :param verbose:
      :param tikaServerJar:
      :param responseMimeType:
      :param services:
      :return:
      '''
      paths = getPaths(urlOrPaths)
      return [detectType1(option, path, serverEndpoint, verbose, tikaServerJar, responseMimeType, services)
               for path in pathsf detectType(option, urlOrPaths, serverEndpoint=ServerEndpoint, verbose=Verbose, tikaServerJar=TikaServerJar, 
                 responseMimeType='text/plain',
                 services={'type': '/detect/stream'}):
      '''
      Detect the MIME/media type of the stream and return it in text/plain.
      :param option:
      :param urlOrPaths:
      :param serverEndpoint:
      :param verbose:
      :param tikaServerJar:
      :param responseMimeType:
      :param services:
      :return:
      '''
      paths = getPaths(urlOrPaths)
      return [detectType1(option, path, serverEndpoint, verbose, tikaServerJar, responseMimeType, services)
               for path in paths]
docs: Detect the MIME/media type of the stream and return it in text/plain.
      :param option:
      :param urlOrPaths:
      :param serverEndpoint:
      :param verbose:
      :param tikaServerJar:
      :param responseMimeType:
      :param services:
      :return: