class_docstr: Tokenizes by making a request to the proxy server with REST endpoint: `/api/tokenize`.
docstr: Tokenizes the text via the /api/tokenize REST endpoint.
docstr_tok: ["Tokenizes","the","text","via","the","\/api\/tokenize","REST","endpoint","."]
code: def tokenize(self, text: str) -> List[str]:
      """
      Tokenizes the text via the /api/tokenize REST endpoint.
      """
      response: TokenizationRequestResult = (
          self._make_tokenization_request(text)
      )
      result = []
      for token in response.tokens:
          assert isinstance(token.value, str)
          result.append(token.value)
      return result
  
imports: import re
  from typing import List, Optional, Tuple
  from urllib.parse import unquote
  from helm.common.tokenization_request import TokenizationRequest, TokenizationRequestResult, TokenizationToken, TextRange
  from .window_service import WindowService, EncodeResult
  from .tokenizer_service import TokenizerService
  from .gpt2_window_service import GPT2WindowService
label_desc: Use image node_id 9 for calling the AI21WindowService obj's underlying member method code with example usage: obj.tokenize(text) and returns: result