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 helper_encode(self, text: str) -> List[str]:
      text = text.replace("\n", " __newln__ ")
      tokens = self.findall(text)
      return self.segment_tokens(tokens)
  
imports: from typing import Dict, List, Tuple
  import torch.jit
label_desc: Use image node_id 7 for calling the ScriptableSubwordBpeHelper obj's underlying member method code with example usage: obj.helper_encode(text) and returns: self