code: def tokenize(self, text):
      data = []
      matches = [m for m in self._regexp.finditer(text)]
      for i in range(len(matches)):
          # Get text
          token = matches[i].group()
  
          # Get whitespace
          span = matches[i].span()
          start_ws = span[0]
          if i + 1 < len(matches):
              end_ws = matches[i + 1].span()[0]
          else:
              end_ws = span[1]
  
          # Format data
          data.append(
              (
                  token,
                  text[start_ws:end_ws],
                  span,
              )
          )
      return Tokens(data, self.annotators)
  
imports: import copy
  import logging
  import regex
  import spacy
label_desc: Use image node_id 2 for calling the SimpleTokenizer obj's underlying member method code with example usage: obj.tokenize(text) and returns: Tokens