"""simple docstring"""
import inspect
import tempfile
from collections import OrderedDict, UserDict
from collections.abc import MutableMapping
from contextlib import ExitStack, contextmanager
from dataclasses import fields
from enum import Enum
from typing import Any, ContextManager, List, Tuple

import numpy as np

from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy


if is_flax_available():
 import jax.numpy as jnp




class        __snake_case	(					__lowerCAmelCase    ):



      def __get__(						self   ,      lowercase   ,      lowercase=None)     ->      int:





        '''simple docstring'''





        if obj is None:
          return self
        if self.fget is None:
          raise AttributeError('unreadable attribute')
        a__:					Dict      							=     '__cached_' + self.fget.__name__
        a__:					Tuple      							=     getattr(lowercase   ,      lowercase   ,      lowercase)
        if cached is None:
          a__:					Any      							=     self.fget(lowercase)
          setattr(lowercase   ,      lowercase   ,      lowercase)
        return cached







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
  a__:					List[Any]      							=     val.lower()
  if val in {"y", "yes", "t", "true", "on", "1"}:
    return 1
  if val in {"n", "no", "f", "false", "off", "0"}:
    return 0
  raise ValueError(F'invalid truth value {val!r}'       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Dict:
  if is_torch_fx_proxy(_SCREAMING_SNAKE_CASE       ):
    return True
  if is_torch_available():
    import torch

    if isinstance(_SCREAMING_SNAKE_CASE		,					torch.Tensor       ):
      return True
  if is_tf_available():
    import tensorflow as tf

    if isinstance(_SCREAMING_SNAKE_CASE		,					tf.Tensor       ):
      return True

  if is_flax_available():
    import jax.numpy as jnp
    from jax.core import Tracer

    if isinstance(_SCREAMING_SNAKE_CASE		,					(jnp.ndarray, Tracer)       ):
      return True

  return isinstance(_SCREAMING_SNAKE_CASE		,					np.ndarray       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Union[str, Any]:
  return isinstance(_SCREAMING_SNAKE_CASE		,					np.ndarray       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->str:
  return _is_numpy(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Any:
  import torch

  return isinstance(_SCREAMING_SNAKE_CASE		,					torch.Tensor       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[Any]:
  return False if not is_torch_available() else _is_torch(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[Any]:
  import torch

  return isinstance(_SCREAMING_SNAKE_CASE		,					torch.device       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->List[str]:
  return False if not is_torch_available() else _is_torch_device(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->List[Any]:
  import torch

  if isinstance(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       ):
    if hasattr(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       ):
      a__:					Optional[int]      							=     getattr(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )
    else:
      return False
  return isinstance(_SCREAMING_SNAKE_CASE		,					torch.dtype       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
  return False if not is_torch_available() else _is_torch_dtype(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->List[str]:
  import tensorflow as tf

  return isinstance(_SCREAMING_SNAKE_CASE		,					tf.Tensor       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->str:
  return False if not is_tf_available() else _is_tensorflow(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
  import tensorflow as tf

  # the `is_symbolic_tensor` predicate is only available starting with TF 2.14
  if hasattr(_SCREAMING_SNAKE_CASE		,					'is_symbolic_tensor'       ):
    return tf.is_symbolic_tensor(_SCREAMING_SNAKE_CASE       )
  return type(_SCREAMING_SNAKE_CASE       ) == tf.Tensor







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->int:
  return False if not is_tf_available() else _is_tf_symbolic_tensor(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
  import jax.numpy as jnp  # noqa: F811

  return isinstance(_SCREAMING_SNAKE_CASE		,					jnp.ndarray       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Tuple:
  return False if not is_flax_available() else _is_jax(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->str:
  if isinstance(_SCREAMING_SNAKE_CASE		,					(dict, UserDict)       ):
    return {k: to_py_obj(_SCREAMING_SNAKE_CASE       ) for k, v in obj.items()}
  elif isinstance(_SCREAMING_SNAKE_CASE		,					(list, tuple)       ):
    return [to_py_obj(_SCREAMING_SNAKE_CASE       ) for o in obj]
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    return obj.numpy().tolist()
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return obj.detach().cpu().tolist()
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return np.asarray(_SCREAMING_SNAKE_CASE       ).tolist()
  elif isinstance(_SCREAMING_SNAKE_CASE		,					(np.ndarray, np.number)       ):  # tolist also works on 0d np arrays
    return obj.tolist()
  else:
    return obj







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Tuple:
  if isinstance(_SCREAMING_SNAKE_CASE		,					(dict, UserDict)       ):
    return {k: to_numpy(_SCREAMING_SNAKE_CASE       ) for k, v in obj.items()}
  elif isinstance(_SCREAMING_SNAKE_CASE		,					(list, tuple)       ):
    return np.array(_SCREAMING_SNAKE_CASE       )
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    return obj.numpy()
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return obj.detach().cpu().numpy()
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return np.asarray(_SCREAMING_SNAKE_CASE       )
  else:
    return obj




class        __snake_case	(					__lowerCAmelCase    ):



      def   lowerCamelCase_       (						self)     ->      Optional[Any]:





        '''simple docstring'''





        a__:					Any      							=     fields(self)

        # Safety and consistency checks
        if not len(lowercase):
          raise ValueError(f'{self.__class__.__name__} has no fields.')
        if not all(field.default is None for field in class_fields[1:]):
          raise ValueError(f'{self.__class__.__name__} should not have more than one required field.')

        a__:					Tuple      							=     getattr(self   ,      class_fields[0].name)
        a__:					Optional[int]      							=     all(getattr(self   ,      field.name) is None for field in class_fields[1:])

        if other_fields_are_none and not is_tensor(lowercase):
          if isinstance(lowercase   ,      lowercase):
            a__:					Dict      							=     first_field.items()
            a__:					List[Any]      							=     True
          else:
            try:
              a__:					int      							=     iter(lowercase)
              a__:					Tuple      							=     True
            except TypeError:
              a__:					str      							=     False

            # if we provided an iterator as first field and the iterator is a (key, value) iterator
            # set the associated fields
          if first_field_iterator:
            for idx, element in enumerate(lowercase):
              if (
                  not isinstance(lowercase   ,      (list, tuple))
                  or not len(lowercase) == 2
                  or not isinstance(element[0]   ,      lowercase)
              ):
                if idx == 0:
                  # If we do not have an iterator of key/values, set it as attribute
                  a__:					Optional[int]      							=     first_field
                else:
                  # If we have a mixed iterator, raise an error
                  raise ValueError(
                      f'Cannot set key/value for {element}. It needs to be a tuple (key, value).')
                break
              setattr(self   ,      element[0]   ,      element[1])
              if element[1] is not None:
                a__:					Tuple      							=     element[1]
          elif first_field is not None:
            a__:					int      							=     first_field
        else:
          for field in class_fields:
            a__:					List[str]      							=     getattr(self   ,      field.name)
            if v is not None:
              a__:					Dict      							=     v



      def __delitem__(						self   ,      *lowercase   ,      **lowercase)     ->      List[Any]:





        '''simple docstring'''





        raise Exception(f'You cannot use ``__delitem__`` on a {self.__class__.__name__} instance.')



      def   lowerCamelCase_       (						self   ,      *lowercase   ,      **lowercase)     ->      List[str]:





        '''simple docstring'''





        raise Exception(f'You cannot use ``setdefault`` on a {self.__class__.__name__} instance.')



      def   lowerCamelCase_       (						self   ,      *lowercase   ,      **lowercase)     ->      str:





        '''simple docstring'''





        raise Exception(f'You cannot use ``pop`` on a {self.__class__.__name__} instance.')



      def   lowerCamelCase_       (						self   ,      *lowercase   ,      **lowercase)     ->      Any:





        '''simple docstring'''





        raise Exception(f'You cannot use ``update`` on a {self.__class__.__name__} instance.')



      def __getitem__(						self   ,      lowercase)     ->      Optional[int]:





        '''simple docstring'''





        if isinstance(lowercase   ,      lowercase):
          a__:					Optional[Any]      							=     dict(self.items())
          return inner_dict[k]
        else:
          return self.to_tuple()[k]



      def __setattr__(						self   ,      lowercase   ,      lowercase)     ->      Tuple:





        '''simple docstring'''





        if name in self.keys() and value is not None:
          # Don't call self.__setitem__ to avoid recursion errors
          super().__setitem__(lowercase   ,      lowercase)
        super().__setattr__(lowercase   ,      lowercase)



      def __setitem__(						self   ,      lowercase   ,      lowercase)     ->      List[Any]:





        '''simple docstring'''





        super().__setitem__(lowercase   ,      lowercase)
        # Don't call self.__setattr__ to avoid recursion errors
        super().__setattr__(lowercase   ,      lowercase)



      def   lowerCamelCase_       (						self)     ->      Tuple[Any]:





        '''simple docstring'''





        return tuple(self[k] for k in self.keys())







class        __snake_case	(					__lowerCAmelCase	,				__lowerCAmelCase    ):



      @classmethod
      def   lowerCamelCase_       (						cls   ,      lowercase)     ->      List[str]:





        '''simple docstring'''





        raise ValueError(
            f'{value} is not a valid {cls.__name__}, please select one of {list(cls._valueamember_map_.keys())}')







class        __snake_case	(					__lowerCAmelCase    ):
      a__				=		"""longest"""
      a__				=		"""max_length"""
      a__				=		"""do_not_pad"""







class        __snake_case	(					__lowerCAmelCase    ):
      a__				=		"""pt"""
      a__				=		"""tf"""
      a__				=		"""np"""
      a__				=		"""jax"""







class        __snake_case	:



      def __init__(						self   ,      lowercase)     ->      Union[str, Any]:





        '''simple docstring'''





        a__:					List[Any]      							=     context_managers
        a__:					Optional[int]      							=     ExitStack()



      def __enter__(						self)     ->      int:





        '''simple docstring'''





        for context_manager in self.context_managers:
          self.stack.enter_context(lowercase)



      def __exit__(						self   ,      *lowercase   ,      **lowercase)     ->      str:





        '''simple docstring'''





        self.stack.__exit__(*lowercase   ,      **lowercase)







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->List[str]:
  a__:					Any      							=     infer_framework(_SCREAMING_SNAKE_CASE       )
  if framework == "tf":
    a__:					List[str]      							=     inspect.signature(model_class.call       )  # TensorFlow models
  elif framework == "pt":
    a__:					Union[str, Any]      							=     inspect.signature(model_class.forward       )  # PyTorch models
  else:
    a__:					str      							=     inspect.signature(model_class.__call__       )  # Flax models

  for p in signature.parameters:
    if p == "return_loss" and signature.parameters[p].default is True:
      return True

  return False







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->str:
  a__:					int      							=     model_class.__name__
  a__:					Tuple      							=     infer_framework(_SCREAMING_SNAKE_CASE       )
  if framework == "tf":
    a__:					Optional[Any]      							=     inspect.signature(model_class.call       )  # TensorFlow models
  elif framework == "pt":
    a__:					Optional[int]      							=     inspect.signature(model_class.forward       )  # PyTorch models
  else:
    a__:					int      							=     inspect.signature(model_class.__call__       )  # Flax models

  if "QuestionAnswering" in model_name:
    return [p for p in signature.parameters if "label" in p or p in ("start_positions", "end_positions")]
  else:
    return [p for p in signature.parameters if "label" in p]







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE = ""		,					_SCREAMING_SNAKE_CASE = "."       )     ->Tuple:

  def _flatten_dict(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE=""		,					_SCREAMING_SNAKE_CASE="."       ):
    for k, v in d.items():
      a__:					Dict      							=     str(_SCREAMING_SNAKE_CASE       ) + delimiter + str(_SCREAMING_SNAKE_CASE       ) if parent_key else k
      if v and isinstance(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       ):
        yield from flatten_dict(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE		,					delimiter=_SCREAMING_SNAKE_CASE       ).items()
      else:
        yield key, v

  return dict(_flatten_dict(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )       )







@contextmanager
def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE = False       )     ->List[Any]:
  if use_temp_dir:
    with tempfile.TemporaryDirectory() as tmp_dir:
      yield tmp_dir
  else:
    yield working_dir







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE=None       )     ->int:
  if is_numpy_array(_SCREAMING_SNAKE_CASE       ):
    return np.transpose(_SCREAMING_SNAKE_CASE		,					axes=_SCREAMING_SNAKE_CASE       )
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return array.T if axes is None else array.permute(*_SCREAMING_SNAKE_CASE       )
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    import tensorflow as tf

    return tf.transpose(_SCREAMING_SNAKE_CASE		,					perm=_SCREAMING_SNAKE_CASE       )
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return jnp.transpose(_SCREAMING_SNAKE_CASE		,					axes=_SCREAMING_SNAKE_CASE       )
  else:
    raise ValueError(F'Type not supported for transpose: {type(_SCREAMING_SNAKE_CASE       )}.'       )







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )     ->Union[str, Any]:
  if is_numpy_array(_SCREAMING_SNAKE_CASE       ):
    return np.reshape(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return array.reshape(*_SCREAMING_SNAKE_CASE       )
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    import tensorflow as tf

    return tf.reshape(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return jnp.reshape(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )
  else:
    raise ValueError(F'Type not supported for reshape: {type(_SCREAMING_SNAKE_CASE       )}.'       )







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE=None       )     ->Optional[Any]:
  if is_numpy_array(_SCREAMING_SNAKE_CASE       ):
    return np.squeeze(_SCREAMING_SNAKE_CASE		,					axis=_SCREAMING_SNAKE_CASE       )
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return array.squeeze() if axis is None else array.squeeze(dim=_SCREAMING_SNAKE_CASE       )
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    import tensorflow as tf

    return tf.squeeze(_SCREAMING_SNAKE_CASE		,					axis=_SCREAMING_SNAKE_CASE       )
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return jnp.squeeze(_SCREAMING_SNAKE_CASE		,					axis=_SCREAMING_SNAKE_CASE       )
  else:
    raise ValueError(F'Type not supported for squeeze: {type(_SCREAMING_SNAKE_CASE       )}.'       )







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )     ->Dict:
  if is_numpy_array(_SCREAMING_SNAKE_CASE       ):
    return np.expand_dims(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return array.unsqueeze(dim=_SCREAMING_SNAKE_CASE       )
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    import tensorflow as tf

    return tf.expand_dims(_SCREAMING_SNAKE_CASE		,					axis=_SCREAMING_SNAKE_CASE       )
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return jnp.expand_dims(_SCREAMING_SNAKE_CASE		,					axis=_SCREAMING_SNAKE_CASE       )
  else:
    raise ValueError(F'Type not supported for expand_dims: {type(_SCREAMING_SNAKE_CASE       )}.'       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
  if is_numpy_array(_SCREAMING_SNAKE_CASE       ):
    return np.size(_SCREAMING_SNAKE_CASE       )
  elif is_torch_tensor(_SCREAMING_SNAKE_CASE       ):
    return array.numel()
  elif is_tf_tensor(_SCREAMING_SNAKE_CASE       ):
    import tensorflow as tf

    return tf.size(_SCREAMING_SNAKE_CASE       )
  elif is_jax_tensor(_SCREAMING_SNAKE_CASE       ):
    return array.size
  else:
    raise ValueError(F'Type not supported for expand_dims: {type(_SCREAMING_SNAKE_CASE       )}.'       )







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )     ->Union[str, Any]:
  for key, value in auto_map.items():
    if isinstance(_SCREAMING_SNAKE_CASE		,					(tuple, list)       ):
      a__:					List[Any]      							=     [F'{repo_id}--{v}' if (v is not None and '--' not in v) else v for v in value]
    elif value is not None and "--" not in value:
      a__:					Dict      							=     F'{repo_id}--{value}'

  return auto_map







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->int:
  for base_class in inspect.getmro(_SCREAMING_SNAKE_CASE       ):
    a__:					str      							=     base_class.__module__
    a__:					str      							=     base_class.__name__
    if module.startswith('tensorflow'       ) or module.startswith('keras'       ) or name == "TFPreTrainedModel":
      return "tf"
    elif module.startswith('torch'       ) or name == "PreTrainedModel":
      return "pt"
    elif module.startswith('flax'       ) or module.startswith('jax'       ) or name == "FlaxPreTrainedModel":
      return "flax"
  else:
    raise TypeError(F'Could not infer framework from class {model_class}.'       )






"""simple docstring"""
import json
from typing import List, Optional, Tuple

from tokenizers import normalizers

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from .tokenization_lxmert import LxmertTokenizer


lowercase__ 	=     {'vocab_file': 'vocab.txt', 'tokenizer_file': 'tokenizer.json'}

lowercase__ 	=     {
    'vocab_file': {
        'unc-nlp/lxmert-base-uncased': 'https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/vocab.txt',
    },
    'tokenizer_file': {
        'unc-nlp/lxmert-base-uncased': (
            'https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/tokenizer.json'
        ),
    },
}

lowercase__ 	=     {
    'unc-nlp/lxmert-base-uncased': 512,
}

lowercase__ 	=     {
    'unc-nlp/lxmert-base-uncased': {'do_lower_case': True},
}




class        __snake_case	(					__lowerCAmelCase    ):
      a__				=		VOCAB_FILES_NAMES
      a__				=		PRETRAINED_VOCAB_FILES_MAP
      a__				=		PRETRAINED_INIT_CONFIGURATION
      a__				=		PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
      a__				=		LxmertTokenizer



      def __init__(						self   ,      lowercase=None   ,      lowercase=None   ,      lowercase=True   ,      lowercase="[UNK]"   ,      lowercase="[SEP]"   ,      lowercase="[PAD]"   ,      lowercase="[CLS]"   ,      lowercase="[MASK]"   ,      lowercase=True   ,      lowercase=None   ,      **lowercase   ,      )     ->      Dict:





        '''simple docstring'''





        super().__init__(
            lowercase   ,      tokenizer_file=lowercase   ,      do_lower_case=lowercase   ,      unk_token=lowercase   ,      sep_token=lowercase   ,      pad_token=lowercase   ,      cls_token=lowercase   ,      mask_token=lowercase   ,      tokenize_chinese_chars=lowercase   ,      strip_accents=lowercase   ,      **lowercase   ,      )

        a__:					Dict      							=     json.loads(self.backend_tokenizer.normalizer.__getstate__())
        if (
            normalizer_state.get('lowercase'   ,      lowercase) != do_lower_case
            or normalizer_state.get('strip_accents'   ,      lowercase) != strip_accents
            or normalizer_state.get('handle_chinese_chars'   ,      lowercase) != tokenize_chinese_chars
        ):
          a__:					int      							=     getattr(lowercase   ,      normalizer_state.pop('type'))
          a__:					Dict      							=     do_lower_case
          a__:					Dict      							=     strip_accents
          a__:					Optional[int]      							=     tokenize_chinese_chars
          a__:					List[Any]      							=     normalizer_class(**lowercase)

        a__:					Optional[int]      							=     do_lower_case



      def   lowerCamelCase_       (						self   ,      lowercase   ,      lowercase=None)     ->      Tuple:





        '''simple docstring'''





        a__:					Optional[Any]      							=     [self.cls_token_id] + token_ids_a + [self.sep_token_id]

        if token_ids_a:
          output += token_ids_a + [self.sep_token_id]

        return output



      def   lowerCamelCase_       (						self   ,      lowercase   ,      lowercase = None)     ->      List[int]:





        '''simple docstring'''





        a__:					List[Any]      							=     [self.sep_token_id]
        a__:					List[Any]      							=     [self.cls_token_id]
        if token_ids_a is None:
          return len(cls + token_ids_a + sep) * [0]
        return len(cls + token_ids_a + sep) * [0] + len(token_ids_a + sep) * [1]



      def   lowerCamelCase_       (						self   ,      lowercase   ,      lowercase = None)     ->      Tuple[str]:





        '''simple docstring'''





        a__:					List[Any]      							=     self._tokenizer.model.save(lowercase   ,      name=lowercase)
        return tuple(lowercase)


