class_docstr: Tokenizes by making a request to the proxy server with REST endpoint: `/api/tokenize`.
code: def __init__(
      self,
      service: TokenizerService,
      gpt2_window_service: GPT2WindowService,
  ):
      # We need the `TokenizerService` to make requests to the server.
      self.service: TokenizerService = service
      # As explained above, we need a `GPT2WindowService` to help tokenize long text sequences.
      self.gpt2_window_service: GPT2WindowService = gpt2_window_service
  
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 1 to create a new AI21WindowService object from inherited base classes: WindowService with example: obj = AI21WindowService(service, gpt2_window_service)