code: def set_spm_pieces(cls, doc: DocProto[Any, Any], pieces: List[str]):
      doc.user_data[cls.KEY_PIECES] = pieces
  
file_path: camphr/packages/camphr/camphr/tokenizer/sentencepiece/__init__.py
imports: from pathlib import Path
  from camphr.serde import SerDe
  import shutil
  from typing import Any, List, TYPE_CHECKING
  from camphr.doc import DocProto, Doc
label_desc: Use image node_id 3 for calling the Tokenizer obj's underlying member method code with example usage: obj.set_spm_pieces(cls, doc, pieces) without return types