


'''simple docstring'''
from __future__ import annotations

import unittest

from transformers import is_tf_available
from transformers.testing_utils import require_sentencepiece, require_tf, require_tokenizers, slow


if is_tf_available():
					import numpy as np
					import tensorflow as tf

					from transformers import TFCamembertModel




@require_tf
@require_sentencepiece
@require_tokenizers
class        _UpperCamelCase	(    unittest.TestCase):


				'''simple docstring'''


				@slow
				def 	a__		(     self							)    ->  Union[str, Any]:
					lowercase						:		Union[str, Any]   					=		TFCamembertModel.from_pretrained("jplu/tf-camembert-base"							)

					lowercase						:		Dict   					=		tf.convert_to_tensor(
					    [[5, 1_2_1, 1_1, 6_6_0, 1_6, 7_3_0, 2_5_5_4_3, 1_1_0, 8_3, 6]]							,      dtype=tf.intaa							,      )  # J'aime le camembert !"

					lowercase						:		Dict   					=		model(a_							)["last_hidden_state"]
					lowercase						:		Dict   					=		tf.TensorShape((1, 1_0, 7_6_8)							)
					self.assertEqual(output.shape							,      a_							)
					# compare the actual values for a slice.
					lowercase						:		List[Any]   					=		tf.convert_to_tensor(
					    [[[-0.02_54, 0.02_35, 0.10_27], [0.06_06, -0.18_11, -0.04_18], [-0.15_61, -0.11_27, 0.26_87]]]							,      dtype=tf.floataa							,      )
					# camembert = torch.hub.load('pytorch/fairseq', 'camembert.v0')
					# camembert.eval()
					# expected_slice = roberta.model.forward(input_ids)[0][:, :3, :3].detach()

					self.assertTrue(np.allclose(output[:, :3, :3].numpy()							,      expected_slice.numpy()							,      atol=1e-4							)							)






'''simple docstring'''
def 	_A  (       A							)  ->				list:

	if len(A							) <= 1:
		return [tuple(A							)]

	lowercase						:		Dict   					=		[]

	def generate(A							,A							):
		lowercase						:		List[Any]   					=		[0] * n
		res.append(tuple(A							)							)

		lowercase						:		Tuple   					=		0
		while i < n:
			if c[i] < i:
				if i % 2 == 0:
					lowercase					,		lowercase						:		List[Any]   					=		arr[i], arr[0]
				else:
					lowercase					,		lowercase						:		Optional[Any]   					=		arr[i], arr[c[i]]
				res.append(tuple(A							)							)
				c[i] += 1
				lowercase						:		Optional[Any]   					=		0
			else:
				lowercase						:		Any   					=		0
				i += 1

	generate(len(A							)							,A							)
	return res


if __name__ == "__main__":
					lowerCAmelCase   : Any             =				input("""Enter numbers separated by a comma:\n""").strip()
					lowerCAmelCase   : List[str]             =				[int(item) for item in user_input.split(""",""")]
					print(heaps(arr))


