code: def detectLang(option, urlOrPaths, serverEndpoint=ServerEndpoint, verbose=Verbose, tikaServerJar=TikaServerJar,
                  responseMimeType='text/plain',
                  services={'file' : '/language/stream'}):
      '''
      Detect the language of the provided stream and return its 2 character code as text/plain.
      :param option:
      :param urlOrPaths:
      :param serverEndpoint:
      :param verbose:
      :param tikaServerJar:
      :param responseMimeType:
      :param services:
      :return:
      '''
      paths = getPaths(urlOrPaths)
      return [detectLang1(option, path, serverEndpoint, verbose, tikaServerJar, responseMimeType, services)
              for path in pathsf detectLang(option, urlOrPaths, serverEndpoint=ServerEndpoint, verbose=Verbose, tikaServerJar=TikaServerJar,
                  responseMimeType='text/plain',
                  services={'file' : '/language/stream'}):
      '''
      Detect the language of the provided stream and return its 2 character code as text/plain.
      :param option:
      :param urlOrPaths:
      :param serverEndpoint:
      :param verbose:
      :param tikaServerJar:
      :param responseMimeType:
      :param services:
      :return:
      '''
      paths = getPaths(urlOrPaths)
      return [detectLang1(option, path, serverEndpoint, verbose, tikaServerJar, responseMimeType, services)
              for path in paths]
docs: Detect the language of the provided stream and return its 2 character code as text/plain.
      :param option:
      :param urlOrPaths:
      :param serverEndpoint:
      :param verbose:
      :param tikaServerJar:
      :param responseMimeType:
      :param services:
      :return: