code: def encode(
      model,
      output_type,
      n_threads,
      bos,
      eos,
      reverse,
      stream,
      dropout_prob,
  ):
      """Encode text to ids or subwords."""
      if n_threads < -1 or n_threads == 0:
          raise ValueError(
              'Invalid value for "--n_threads": must be -1 or positive integer, not "%d"'
              % n_threads
          )
  
      bpe = yttmc.BPE(model, n_threads)
      bpe.encode_cli(
          output_type, stream, bos, eos, reverse, dropout_prob
      )
  
imports: import _youtokentome_cython
  import click
label_desc: Use image node_id 3 for calling a global function with example usage: encode(model, output_type, n_threads, bos, eos, reverse, stream, dropout_prob) without return types