class_docstr: Represents an abstract base class for SentencePiece tokenizers.
class_docstr_tok: ["Represents","an","abstract","base","class","for","SentencePiece","tokenizers","."]
code: def create_raw_encoder(
      self, *, device: Optional[Device] = None, pin_memory: bool = False
  ) -> SentencePieceEncoder:
      return SentencePieceEncoder(
          self.model, device=device, pin_memory=pin_memory
      )
  
file_path: fairseq2/src/fairseq2/data/text/sentencepiece.py
imports: from typing import TYPE_CHECKING, List, Optional, Sequence, final
  from fairseq2n import DOC_MODE
  from torch import Tensor
  from fairseq2.data.text.text_tokenizer import TextTokenDecoder, TextTokenEncoder, TextTokenizer
  from fairseq2.data.typing import PathLike, StringLike
  from fairseq2.data.vocabulary_info import VocabularyInfo
  from fairseq2.typing import Device, finaloverride
label_desc: Use image node_id 2 for calling the SentencePieceTokenizerBase obj's underlying member method code with example usage: obj.create_raw_encoder() and returns: SentencePieceEncoder