
'''simple docstring'''





import os
import unittest

import pytest
from parameterized import parameterized

from transformers.testing_utils import require_torch, require_torch_gpu, slow, torch_device


# skipping in unittest tests

UpperCAmelCase            = [(1,)]

def   A			(							):
						snake_case							:  Union[str, Any]			=     bool(os.getenv('''RUN_SLOW'''     ,				0							)							)
						if run_slow:
												assert True
						else:
												assert False, "should have been skipped"

def   A			(							):
						snake_case							:  int			=     bool(os.getenv('''RUN_SLOW'''     ,				0							)							)
						if run_slow and torch_device == "cuda":
												assert True
						else:
												assert False, "should have been skipped"

@require_torch
class     a (					unittest.TestCase     ):




				@slow
				@require_torch_gpu
				def 						__snake_case				(				self						:					Tuple   ):
										check_slow_torch_cuda()




				@require_torch_gpu
				@slow
				def 						__snake_case				(				self						:					List[str]   ):
										check_slow_torch_cuda()




				@parameterized.expand(SCREAMING_SNAKE_CASE_   )
				@slow
				def 						__snake_case				(				self						:					Optional[int],     SCREAMING_SNAKE_CASE_						:					Union[str, Any]=None   ):
										check_slow()




@slow
@require_torch_gpu
def   A			(							):
						check_slow_torch_cuda()

@require_torch_gpu
@slow
def   A			(							):
						check_slow_torch_cuda()

@slow
@pytest.mark.parametrize('''param'''     ,				[1]							)
def   A			(							A_				:       List[Any]							):
						check_slow()





@pytest.mark.parametrize('''param'''     ,				[1]							)
@slow
def   A			(							A_				:       Tuple							):
						check_slow()



'''simple docstring'''





def   A			(							A_				:       int							):
						return n * (2 * n - 1)

def   A			(							A_				:       int							):
						snake_case							:  Optional[Any]			=     (1 + 24 * n) ** 0.5
						return ((1 + root) / 6) % 1 == 0

def   A			(							A_				:       int = 144							):
						snake_case							:  Any			=     start
						snake_case							:  Any			=     hexagonal_num(A_							)
						while not is_pentagonal(A_							):
												n += 1
												snake_case							:  Optional[Any]			=     hexagonal_num(A_							)
						return num


if __name__ == "__main__":
						print(f'''{solution()} = ''')

