



'''simple docstring'''




import asyncio
import os
import re
import sys
import tempfile
import unittest
from contextlib import contextmanager
from copy import deepcopy
from distutils.util import strtobool
from enum import Enum
from importlib.util import find_spec
from pathlib import Path
from unittest.mock import patch

import pyarrow as pa
import pytest
import requests
from packaging import version

from datasets import config


if config.PY_VERSION < version.parse("""3.8"""):
							import importlib_metadata
else:
							import importlib.metadata as importlib_metadata



def       __lowerCamelCase  (					_lowercase	,				_lowercase=False		)      ->			str:
							try:
														UpperCAmelCase     :		Union[str, Any]							     =		os.environ[key]
							except KeyError:
														# KEY isn't set, default to `default`.
														UpperCAmelCase     :		str							     =		default
							else:
														# KEY is set, convert it to True or False.
														try:
																					UpperCAmelCase     :		Optional[int]							     =		strtobool(_lowercase		)
														except ValueError:
																					# More values are supported, but let's keep the message simple.
																					raise ValueError(F'''If set, {key} must be yes or no.'''		)
							return _value


a   :			Union[str, Any]					  =    parse_flag_from_env("""RUN_SLOW""", default=False)
a   :			List[str]					  =    parse_flag_from_env("""RUN_REMOTE""", default=False)
a   :			Optional[Any]					  =    parse_flag_from_env("""RUN_LOCAL""", default=True)
a   :			List[Any]					  =    parse_flag_from_env("""RUN_PACKAGED""", default=True)

# Compression
a   :			Any					  =    pytest.mark.skipif(not config.LZ4_AVAILABLE, reason="""test requires lz4""")
a   :			Tuple					  =    pytest.mark.skipif(not config.PY7ZR_AVAILABLE, reason="""test requires py7zr""")
a   :			Union[str, Any]					  =    pytest.mark.skipif(not config.ZSTANDARD_AVAILABLE, reason="""test requires zstandard""")

# Audio
a   :			Optional[int]					  =    pytest.mark.skipif(
    # On Windows and OS X, soundfile installs sndfile
    find_spec("""soundfile""") is None or version.parse(importlib_metadata.version("""soundfile""")) < version.parse("""0.12.0"""),
    reason="""test requires sndfile>=0.12.1: 'pip install \"soundfile>=0.12.1\"'; """,
)

# Beam
a   :			str					  =    pytest.mark.skipif(
    not config.BEAM_AVAILABLE or config.DILL_VERSION >= version.parse("""0.3.2"""),
    reason="""test requires apache-beam and a compatible dill version""",
)

# Dill-cloudpickle compatibility
a   :			Union[str, Any]					  =    pytest.mark.skipif(
    config.DILL_VERSION <= version.parse("""0.3.2"""),
    reason="""test requires dill>0.3.2 for cloudpickle compatibility""",
)

# Windows
a   :			List[Any]					  =    pytest.mark.skipif(
    sys.platform == """win32""",
    reason="""test should not be run on Windows""",
)



def       __lowerCamelCase  (					_lowercase		)      ->			int:
							try:
														import faiss  # noqa
							except ImportError:
														UpperCAmelCase     :		Dict							     =		unittest.skip("""test requires faiss"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[Any]:
							try:
														import regex  # noqa
							except ImportError:
														UpperCAmelCase     :		Optional[int]							     =		unittest.skip("""test requires regex"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			int:
							try:
														import elasticsearch  # noqa
							except ImportError:
														UpperCAmelCase     :		Union[str, Any]							     =		unittest.skip("""test requires elasticsearch"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[int]:
							try:
														import sqlalchemy  # noqa
							except ImportError:
														UpperCAmelCase     :		Tuple							     =		unittest.skip("""test requires sqlalchemy"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[int]:
							if not config.TORCH_AVAILABLE:
														UpperCAmelCase     :		Optional[int]							     =		unittest.skip("""test requires PyTorch"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[Any]:
							if not config.TF_AVAILABLE:
														UpperCAmelCase     :		Tuple							     =		unittest.skip("""test requires TensorFlow"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Union[str, Any]:
							if not config.JAX_AVAILABLE:
														UpperCAmelCase     :		Tuple							     =		unittest.skip("""test requires JAX"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Dict:
							if not config.PIL_AVAILABLE:
														UpperCAmelCase     :		Tuple							     =		unittest.skip("""test requires Pillow"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Tuple:
							try:
														import transformers  # noqa F401
							except ImportError:
														return unittest.skip("""test requires transformers"""		)(_lowercase		)
							else:
														return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			str:
							try:
														import tiktoken  # noqa F401
							except ImportError:
														return unittest.skip("""test requires tiktoken"""		)(_lowercase		)
							else:
														return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[Any]:
							try:
														import spacy  # noqa F401
							except ImportError:
														return unittest.skip("""test requires spacy"""		)(_lowercase		)
							else:
														return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[int]:

							def _require_spacy_model(_lowercase		):
														try:
																					import spacy  # noqa F401

																					spacy.load(_lowercase		)
														except ImportError:
																					return unittest.skip("""test requires spacy"""		)(_lowercase		)
														except OSError:
																					return unittest.skip("""test requires spacy model '{}'""".format(_lowercase		)		)(_lowercase		)
														else:
																					return test_case

							return _require_spacy_model



def       __lowerCamelCase  (					_lowercase		)      ->			Any:
							try:
														import pyspark  # noqa F401
							except ImportError:
														return unittest.skip("""test requires pyspark"""		)(_lowercase		)
							else:
														return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Union[str, Any]:
							try:
														import joblibspark  # noqa F401
							except ImportError:
														return unittest.skip("""test requires joblibspark"""		)(_lowercase		)
							else:
														return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Any:
							if not _run_slow_tests or _run_slow_tests == 0:
														UpperCAmelCase     :		Optional[int]							     =		unittest.skip("""test is slow"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			int:
							if not _run_local_tests or _run_local_tests == 0:
														UpperCAmelCase     :		Dict							     =		unittest.skip("""test is local"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Optional[Any]:
							if not _run_packaged_tests or _run_packaged_tests == 0:
														UpperCAmelCase     :		Dict							     =		unittest.skip("""test is packaged"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					_lowercase		)      ->			Dict:
							if not _run_remote_tests or _run_remote_tests == 0:
														UpperCAmelCase     :		Union[str, Any]							     =		unittest.skip("""test requires remote"""		)(_lowercase		)
							return test_case



def       __lowerCamelCase  (					*_lowercase		)      ->			Dict:
							def decorate(cls		):
														for name, fn in cls.__dict__.items():
																					if callable(_lowercase		) and name.startswith("""test"""		):
																												for decorator in decorators:
																																			UpperCAmelCase     :		Any							     =		decorator(_lowercase		)
																												setattr(cls	,				_lowercase	,				_lowercase		)
														return cls

							return decorate

class 			UpperCamelCase_ (							__magic_name__			):
	pass




class 			UpperCamelCase_ (							__magic_name__			):
	lowercase          = 0
	lowercase          = 1
	lowercase          = 2




@contextmanager
def       __lowerCamelCase  (					_lowercase=OfflineSimulationMode.CONNECTION_FAILS	,				_lowercase=1e-16		)      ->			str:
							UpperCAmelCase     :		str							     =		requests.Session().request

							def timeout_request(_lowercase	,				_lowercase	,				_lowercase	,				**_lowercase		):
														# Change the url to an invalid url so that the connection hangs
														UpperCAmelCase     :		str							     =		"""https://10.255.255.1"""
														if kwargs.get("""timeout"""		) is None:
																					raise RequestWouldHangIndefinitelyError(
																					    F'''Tried a call to {url} in offline mode with no timeout set. Please set a timeout.'''		)
														UpperCAmelCase     :		Optional[Any]							     =		timeout
														try:
																					return online_request(_lowercase	,				_lowercase	,				**_lowercase		)
														except Exception as e:
																					# The following changes in the error are just here to make the offline timeout error prettier
																					UpperCAmelCase     :		Any							     =		url
																					UpperCAmelCase     :		Tuple							     =		e.args[0]
																					UpperCAmelCase     :		List[str]							     =		(max_retry_error.args[0].replace("""10.255.255.1"""	,				F'''OfflineMock[{url}]'''		),)
																					UpperCAmelCase     :		Optional[Any]							     =		(max_retry_error,)
																					raise

							def raise_connection_error(_lowercase	,				_lowercase	,				**_lowercase		):
														raise requests.ConnectionError("""Offline mode is enabled."""	,				request=_lowercase		)

							if mode is OfflineSimulationMode.CONNECTION_FAILS:
														with patch("""requests.Session.send"""	,				_lowercase		):
																					yield
							elif mode is OfflineSimulationMode.CONNECTION_TIMES_OUT:
														# inspired from https://stackoverflow.com/a/904609
														with patch("""requests.Session.request"""	,				_lowercase		):
																					yield
							elif mode is OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1:
														with patch("""datasets.config.HF_DATASETS_OFFLINE"""	,				_lowercase		):
																					yield
							else:
														raise ValueError("""Please use a value from the OfflineSimulationMode enum."""		)



@contextmanager
def       __lowerCamelCase  (					*_lowercase	,				**_lowercase		)      ->			Optional[Any]:
							UpperCAmelCase     :		Optional[Any]							     =		str(Path().resolve()		)
							with tempfile.TemporaryDirectory(*_lowercase	,				**_lowercase		) as tmp_dir:
														try:
																					os.chdir(_lowercase		)
																					yield
														finally:
																					os.chdir(_lowercase		)



@contextmanager
def       __lowerCamelCase  (					)      ->			str:
							import gc

							gc.collect()
							UpperCAmelCase     :		Any							     =		pa.total_allocated_bytes()
							yield
							assert pa.total_allocated_bytes() - previous_allocated_memory > 0, "Arrow memory didn't increase."



@contextmanager
def       __lowerCamelCase  (					)      ->			Dict:
							import gc

							gc.collect()
							UpperCAmelCase     :		Optional[Any]							     =		pa.total_allocated_bytes()
							yield
							assert pa.total_allocated_bytes() - previous_allocated_memory <= 0, "Arrow memory wasn't expected to increase."



def       __lowerCamelCase  (					_lowercase	,				_lowercase		)      ->			Any:
							return deepcopy(_lowercase		).integers(0	,				1_0_0	,				1_0		).tolist() == deepcopy(_lowercase		).integers(0	,				1_0_0	,				1_0		).tolist()



def       __lowerCamelCase  (					_lowercase		)      ->			Dict:
							import decorator
							from requests.exceptions import HTTPError

							def _wrapper(_lowercase	,				*_lowercase	,				**_lowercase		):
														try:
																					return func(*_lowercase	,				**_lowercase		)
														except HTTPError as err:
																					if str(_lowercase		).startswith("""500"""		) or str(_lowercase		).startswith("""502"""		):
																												pytest.xfail(str(_lowercase		)		)
																					raise err

							return decorator.decorator(_wrapper	,				_lowercase		)

class 			UpperCamelCase_ :





	def __init__(  self		,		A		,		A		,		A    )			->			Any:
								UpperCAmelCase     :		Optional[Any]							     =		returncode
								UpperCAmelCase     :		Optional[Any]							     =		stdout
								UpperCAmelCase     :		Optional[Any]							     =		stderr




async def       __lowerCamelCase  (					_lowercase	,				_lowercase		)      ->			Any:
							while True:
														UpperCAmelCase     :		Dict							     =		await stream.readline()
														if line:
																					callback(_lowercase		)
														else:
																					break



async def       __lowerCamelCase  (					_lowercase	,				_lowercase=None	,				_lowercase=None	,				_lowercase=None	,				_lowercase=False	,				_lowercase=False		)      ->			_RunOutput:
							if echo:
														print("""\nRunning: """	,				""" """.join(_lowercase		)		)

							UpperCAmelCase     :		Optional[Any]							     =		await asyncio.create_subprocess_exec(
							    cmd[0]	,				*cmd[1:]	,				stdin=_lowercase	,				stdout=asyncio.subprocess.PIPE	,				stderr=asyncio.subprocess.PIPE	,				env=_lowercase	,				)

							# note: there is a warning for a possible deadlock when using `wait` with huge amounts of data in the pipe
							# https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.asyncio.subprocess.Process.wait
							#
							# If it starts hanging, will need to switch to the following code. The problem is that no data
							# will be seen until it's done and if it hangs for example there will be no debug info.
							# out, err = await p.communicate()
							# return _RunOutput(p.returncode, out, err)

							UpperCAmelCase     :		Optional[int]							     =		[]
							UpperCAmelCase     :		Union[str, Any]							     =		[]

							def tee(_lowercase	,				_lowercase	,				_lowercase	,				_lowercase=""		):
														UpperCAmelCase     :		int							     =		line.decode("""utf-8"""		).rstrip()
														sink.append(_lowercase		)
														if not quiet:
																					print(_lowercase	,				_lowercase	,				file=_lowercase		)

    # XXX: the timeout doesn't seem to make any difference here
							await asyncio.wait(
							    [
							        _read_stream(p.stdout	,				lambda _lowercase		: tee(_lowercase	,				_lowercase	,				sys.stdout	,				label="""stdout:"""		)		),
							        _read_stream(p.stderr	,				lambda _lowercase		: tee(_lowercase	,				_lowercase	,				sys.stderr	,				label="""stderr:"""		)		),
							    ]	,				timeout=_lowercase	,				)
							return _RunOutput(await p.wait()	,				_lowercase	,				_lowercase		)



def       __lowerCamelCase  (					_lowercase	,				_lowercase=None	,				_lowercase=None	,				_lowercase=1_8_0	,				_lowercase=False	,				_lowercase=True		)      ->			_RunOutput:
							UpperCAmelCase     :		List[str]							     =		asyncio.get_event_loop()
							UpperCAmelCase     :		Any							     =		loop.run_until_complete(
							    _stream_subprocess(_lowercase	,				env=_lowercase	,				stdin=_lowercase	,				timeout=_lowercase	,				quiet=_lowercase	,				echo=_lowercase		)		)

							UpperCAmelCase     :		Dict							     =		""" """.join(_lowercase		)
							if result.returncode > 0:
														UpperCAmelCase     :		int							     =		"""\n""".join(result.stderr		)
														raise RuntimeError(
														    F'''\'{cmd_str}\' failed with returncode {result.returncode}\n\n'''
														    F'''The combined stderr from workers follows:\n{stderr}'''		)

							# check that the subprocess actually did run and produced some output, should the test rely on
							# the remote side to do the testing
							if not result.stdout and not result.stderr:
														raise RuntimeError(F'''\'{cmd_str}\' produced no output.'''		)

							return result



def       __lowerCamelCase  (					)      ->			Optional[int]:
							UpperCAmelCase     :		Dict							     =		os.environ.get("""PYTEST_XDIST_WORKER"""	,				"""gw0"""		)
							UpperCAmelCase     :		Union[str, Any]							     =		re.sub(R"""^gw"""	,				""""""	,				_lowercase	,				0	,				re.M		)
							return int(_lowercase		)



def       __lowerCamelCase  (					)      ->			List[Any]:
							UpperCAmelCase     :		List[str]							     =		2_9_5_0_0
							UpperCAmelCase     :		Union[str, Any]							     =		pytest_xdist_worker_id()
							return port + uniq_delta






'''simple docstring'''




import unittest

from transformers import AlbertTokenizer, AlbertTokenizerFast
from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, slow

from ...test_tokenization_common import TokenizerTesterMixin


a   :			Any					  =    get_tests_dir("""fixtures/spiece.model""")

@require_sentencepiece
@require_tokenizers
class 			UpperCamelCase_ (							__magic_name__      ,     unittest.TestCase			):
	lowercase          = AlbertTokenizer
	lowercase          = AlbertTokenizerFast
	lowercase          = True
	lowercase          = True
	lowercase          = True





	def  _lowercase(  self    )			->			str:
								super().setUp()

								# We have a SentencePiece fixture for testing
								UpperCAmelCase     :		Optional[int]							     =		AlbertTokenizer(A    )
								tokenizer.save_pretrained(self.tmpdirname    )





	def  _lowercase(  self		,		A    )			->			int:
								UpperCAmelCase     :		Optional[int]							     =		"""this is a test"""
								UpperCAmelCase     :		Dict							     =		"""this is a test"""
								return input_text, output_text





	def  _lowercase(  self    )			->			int:
								UpperCAmelCase     :		Tuple							     =		"""<pad>"""
								UpperCAmelCase     :		Optional[int]							     =		0

								self.assertEqual(self.get_tokenizer()._convert_token_to_id(A    )		,		A    )
								self.assertEqual(self.get_tokenizer()._convert_id_to_token(A    )		,		A    )





	def  _lowercase(  self    )			->			Any:
								UpperCAmelCase     :		str							     =		list(self.get_tokenizer().get_vocab().keys()    )

								self.assertEqual(vocab_keys[0]		,		"""<pad>"""    )
								self.assertEqual(vocab_keys[1]		,		"""<unk>"""    )
								self.assertEqual(vocab_keys[-1]		,		"""▁eloquent"""    )
								self.assertEqual(len(A    )		,		30000    )





	def  _lowercase(  self    )			->			Tuple:
								self.assertEqual(self.get_tokenizer().vocab_size		,		30000    )





	def  _lowercase(  self    )			->			Union[str, Any]:
								if not self.test_rust_tokenizer:
															return

								UpperCAmelCase     :		int							     =		self.get_tokenizer()
								UpperCAmelCase     :		List[str]							     =		self.get_rust_tokenizer()

								UpperCAmelCase     :		Optional[Any]							     =		"""I was born in 92000, and this is falsé."""

								UpperCAmelCase     :		str							     =		tokenizer.tokenize(A    )
								UpperCAmelCase     :		Optional[int]							     =		rust_tokenizer.tokenize(A    )
								self.assertListEqual(A		,		A    )

								UpperCAmelCase     :		Any							     =		tokenizer.encode(A		,		add_special_tokens=A    )
								UpperCAmelCase     :		Optional[int]							     =		rust_tokenizer.encode(A		,		add_special_tokens=A    )
								self.assertListEqual(A		,		A    )

								UpperCAmelCase     :		Optional[Any]							     =		self.get_rust_tokenizer()
								UpperCAmelCase     :		Union[str, Any]							     =		tokenizer.encode(A    )
								UpperCAmelCase     :		Optional[int]							     =		rust_tokenizer.encode(A    )
								self.assertListEqual(A		,		A    )





	def  _lowercase(  self    )			->			Any:
								UpperCAmelCase     :		List[Any]							     =		AlbertTokenizer(A		,		keep_accents=A    )

								UpperCAmelCase     :		Optional[int]							     =		tokenizer.tokenize("""This is a test"""    )
								self.assertListEqual(A		,		["""▁this""", """▁is""", """▁a""", """▁test"""]    )

								self.assertListEqual(tokenizer.convert_tokens_to_ids(A    )		,		[48, 25, 21, 1289]    )

								UpperCAmelCase     :		Optional[Any]							     =		tokenizer.tokenize("""I was born in 92000, and this is falsé."""    )
								self.assertListEqual(
								    A		,		["""▁i""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """é""", """."""]    )
								UpperCAmelCase     :		str							     =		tokenizer.convert_tokens_to_ids(A    )
								self.assertListEqual(A		,		[31, 23, 386, 19, 561, 3050, 15, 17, 48, 25, 8256, 18, 1, 9]    )

								UpperCAmelCase     :		List[str]							     =		tokenizer.convert_ids_to_tokens(A    )
								self.assertListEqual(
								    A		,		["""▁i""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """<unk>""", """."""]		,		)





	def  _lowercase(  self    )			->			Optional[Any]:
								UpperCAmelCase     :		str							     =		AlbertTokenizer(A    )

								UpperCAmelCase     :		Optional[int]							     =		tokenizer.encode("""sequence builders"""    )
								UpperCAmelCase     :		Any							     =		tokenizer.encode("""multi-sequence build"""    )

								UpperCAmelCase     :		Optional[Any]							     =		tokenizer.build_inputs_with_special_tokens(A    )
								UpperCAmelCase     :		List[str]							     =		tokenizer.build_inputs_with_special_tokens(A		,		A    )

								assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
								assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [
								    tokenizer.sep_token_id
								]






	@slow
	def  _lowercase(  self    )			->			Dict:
								# fmt: off
								UpperCAmelCase     :		Tuple							     =		{"""attention_mask""": [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], """input_ids""": [[2, 21970, 13, 5, 6092, 167, 28, 7103, 2153, 673, 8, 7028, 12051, 18, 17, 7103, 2153, 673, 8, 3515, 18684, 8, 4461, 6, 1927, 297, 8, 12060, 2607, 18, 13, 5, 4461, 15, 10538, 38, 8, 135, 15, 822, 58, 15, 993, 10363, 15, 1460, 8005, 4461, 15, 993, 255, 2328, 9, 9, 9, 6, 26, 1112, 816, 3260, 13, 5, 103, 2377, 6, 17, 1112, 816, 2782, 13, 5, 103, 10641, 6, 29, 84, 2512, 2430, 782, 18684, 2761, 19, 808, 2430, 2556, 17, 855, 1480, 9477, 4091, 128, 11712, 15, 7103, 2153, 673, 17, 24883, 9990, 9, 3], [2, 11502, 25, 1006, 20, 782, 8, 11809, 855, 1732, 19393, 18667, 37, 367, 21018, 69, 1854, 34, 11860, 19124, 27, 156, 225, 17, 193, 4141, 19, 65, 9124, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 14, 2231, 886, 2385, 17659, 84, 14, 16792, 1952, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], """token_type_ids""": [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}  # noqa: E501
								# fmt: on

								self.tokenizer_integration_test_util(
								    expected_encoding=A		,		model_name="""albert-base-v2"""		,		revision="""6b6560eaf5ff2e250b00c50f380c5389a9c2d82e"""		,		)

