code: def encode(self, text):
      bpe_tokens = []
      text = whitespace_clean(basic_clean(text)).lower()
      for token in re.findall(self.pat, text):
          token = "".join(
              self.byte_encoder[b] for b in token.encode("utf-8")
          )
          bpe_tokens.extend(
              self.encoder[bpe_token]
              for bpe_token in self.bpe(token).split(" ")
          )
      return bpe_tokens
  
file_path: PaddleSeg/contrib/SegmentAnything/segment_anything/utils/sample_tokenizer.py
imports: import gzip
  import html
  import os
  from functools import lru_cache
  import ftfy
  import regex
  import paddle
label_desc: Use image node_id 3 for calling the SimpleTokenizer obj's underlying member method code with example usage: obj.encode(text) and returns: bpe_tokens