code: def __init__(self, cfg):
      self.enable_sampling = cfg.sentencepiece_enable_sampling
      self.alpha = cfg.sentencepiece_alpha
      sentencepiece_model = file_utils.cached_path(
          cfg.sentencepiece_model
      )
      try:
          import sentencepiece as spm
  
          self.sp = spm.SentencePieceProcessor()
          self.sp.Load(sentencepiece_model)
      except ImportError:
          raise ImportError(
              "Please install sentencepiece with: pip install sentencepiece"
          )
  
file_path: fairseq/fairseq/data/encoders/sentencepiece_bpe.py
imports: from dataclasses import dataclass, field
  from typing import Optional
  from fairseq import file_utils
  from fairseq.data.encoders import register_bpe
  from fairseq.dataclass import FairseqDataclass
label_desc: Use image node_id 1 to create a new SentencepieceBPE object from inherited base classes: object with example: obj = SentencepieceBPE(cfg)