class_docstr: Version of parlai.utils.bpe.SubwordBPEHelper that can be TorchScripted.
class_docstr_tok: ["Version","of","parlai.utils.bpe.SubwordBPEHelper","that","can","be","TorchScripted","."]
code: def encode(self, text: str) -> List[str]:
      if self.add_prefix_space:
          text = f" {text}"
      return self.helper_encode(text)
  
imports: from typing import Dict, List, Tuple
  import torch.jit
label_desc: Use image node_id 3 for calling the ScriptableSubwordBpeHelper obj's underlying member method code with example usage: obj.encode(text) and returns: self