code: 
  
  
  
  from typing import Optional, Tuple
  
  from ...tokenization_utils_fast import PreTrainedTokenizerFast
  from ...utils import logging
  from .tokenization_openai import OpenAIGPTTokenizer
  
  
  __lowerCamelCase  				=					logging.get_logger(__name__)
  
  __lowerCamelCase  				=					{"""vocab_file""": """vocab.json""", """merges_file""": """merges.txt""", """tokenizer_file""": """tokenizer.json"""}
  
  __lowerCamelCase  				=					{
      """vocab_file""": {"""openai-gpt""": """https://huggingface.co/openai-gpt/resolve/main/vocab.json"""},
      """merges_file""": {"""openai-gpt""": """https://huggingface.co/openai-gpt/resolve/main/merges.txt"""},
      """tokenizer_file""": {"""openai-gpt""": """https://huggingface.co/openai-gpt/resolve/main/tokenizer.json"""},
  }
  
  __lowerCamelCase  				=					{
      """openai-gpt""": 5_1_2,
  }
  
  
  
  class 		_snake_case      (			lowerCamelCase				):
  
  
  
  
  
   """simple docstring"""
  
  
  
   lowerCamelCase_          =			VOCAB_FILES_NAMES
   lowerCamelCase_          =			PRETRAINED_VOCAB_FILES_MAP
   lowerCamelCase_          =			PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
   lowerCamelCase_          =			['''input_ids''', '''attention_mask''']
   lowerCamelCase_          =			OpenAIGPTTokenizer
   def __init__(						self	,    a=None	,    a=None	,    a=None	,    a="<unk>"	,    **a					)	->							Dict:
  
  
  
  
     """simple docstring"""
  
  
  
  
  
  
  
     super().__init__(a	,    a	,    tokenizer_file=a	,    unk_token=a	,    **a					)
   @property
   def lowercase_		(						self					)	->							Dict:
  
  
  
  
     """simple docstring"""
  
  
  
  
  
  
  
     return True
  
  
  
   def lowercase_		(						self	,    a	,    a = None					)	->							Tuple[str]:
  
  
  
  
     """simple docstring"""
  
  
  
  
  
  
  
     _A           =    self._tokenizer.model.save(a	,    name=a					)
     return tuple(a					)
style_context: 
  
  
  
  from ..utils import requires_backends
  
  
  __lowerCamelCase  				=					None
  
  
  
  class 		_snake_case      :
  
  
  
  
  
   """simple docstring"""
  
  
  
   def __init__(						self	,    *a	,    **a					)	->							Tuple:
  
  
  
  
     """simple docstring"""
  
  
  
  
  
  
  
     requires_backends(self	,    ['''detectron2''']					)
  
  
  
   @classmethod
   def lowercase_		(						cls	,    *a	,    **a					)	->							Optional[int]:
  
  
  
  
     """simple docstring"""
  
  
  
  
  
  
  
     requires_backends(cls	,    ['''detectron2''']					)