code: def encode(
      self,
      sentences: List[str],
      output_type: OutputType = OutputType.ID,
      bos: bool = False,
      eos: bool = False,
      reverse: bool = False,
      dropout_prob: float = 0,
  ) -> Union[List[List[int]], List[List[str]]]:
      if not isinstance(output_type, OutputType):
          raise TypeError(
              "parameter output_type must be youtokentome.OutputType, not %s}"
              % str(type(output_type))
          )
  
      output_type_str = (
          "id" if output_type == OutputType.ID else "subword"
      )
      return self.bpe_cython.encode(
          sentences=sentences,
          output_type=output_type_str,
          bos=bos,
          eos=eos,
          reverse=reverse,
          dropout_prob=dropout_prob,
      )
  
file_path: YouTokenToMe/youtokentome/youtokentome.py
imports: import _youtokentome_cython
  from enum import Enum
  from typing import List, Union, Optional, Collection
label_desc: Use image node_id 3 for calling the BPE obj's underlying member method code with example usage: obj.encode(sentences, output_type, bos, eos, reverse, dropout_prob) and returns: self