code: def _preprocess(self, text: str, linebreak=True, whitespaces=True):
      if linebreak:
          text = text.replace("\n", "<n>")
      if whitespaces:
          text = self._encode_whitespaces(
              text, max_len=self.max_blank_length
          )
      return text
  
imports: import os
  from typing import Dict, List, Optional, Union
  import numpy
  import sentencepiece
  from transformers.tokenization_utils import PreTrainedTokenizer
  from transformers.tokenization_utils_base import BatchEncoding, EncodedInput
  from transformers.utils import PaddingStrategy, logging
label_desc: Use image node_id 8 for calling the SPTokenizer obj's underlying member method code with example usage: obj._preprocess(text, linebreak, whitespaces) and returns: text