
'''simple docstring'''







def 			_a		(	_SCREAMING_SNAKE_CASE		:   list  ):
						if not isinstance(_SCREAMING_SNAKE_CASE	,			_SCREAMING_SNAKE_CASE  ):
												raise ValueError("Input series is not valid, valid series - [2, 4, 6]"  )
						if len(_SCREAMING_SNAKE_CASE  ) == 0:
												raise ValueError("Input list must be a non empty list"  )
						if len(_SCREAMING_SNAKE_CASE  ) == 1:
												return True
						_SCREAMING_SNAKE_CASE				= series[1] - series[0]
						for index in range(len(_SCREAMING_SNAKE_CASE  ) - 1  ):
												if series[index + 1] - series[index] != common_diff:
																		return False
						return True



def 			_a		(	_SCREAMING_SNAKE_CASE		:   list  ):
						if not isinstance(_SCREAMING_SNAKE_CASE	,			_SCREAMING_SNAKE_CASE  ):
												raise ValueError("Input series is not valid, valid series - [2, 4, 6]"  )
						if len(_SCREAMING_SNAKE_CASE  ) == 0:
												raise ValueError("Input list must be a non empty list"  )
						_SCREAMING_SNAKE_CASE				= 0
						for val in series:
												answer += val
						return answer / len(_SCREAMING_SNAKE_CASE  )


if __name__ == "__main__":
						import doctest

						doctest.testmod()

'''simple docstring'''







from transformers import DistilBertTokenizer, DistilBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest


@require_tokenizers
class 			lowerCAmelCase (				__UpperCAmelCase			):
		a							:					Dict       =					DistilBertTokenizer
		a							:					Tuple       =					DistilBertTokenizerFast
		a							:					List[str]       =					True




		@slow
		def     lowercase       (				self      ):
								_SCREAMING_SNAKE_CASE				= DistilBertTokenizer.from_pretrained("distilbert-base-uncased"      )

								_SCREAMING_SNAKE_CASE				= tokenizer.encode("sequence builders"					,						add_special_tokens=UpperCamelCase      )
								_SCREAMING_SNAKE_CASE				= tokenizer.encode("multi-sequence build"					,						add_special_tokens=UpperCamelCase      )

								_SCREAMING_SNAKE_CASE				= tokenizer.build_inputs_with_special_tokens(UpperCamelCase      )
								_SCREAMING_SNAKE_CASE				= tokenizer.build_inputs_with_special_tokens(UpperCamelCase					,						UpperCamelCase      )

								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
								]