


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        UpperCAmelCase_      (							)  ->    List[Any]:







 """simple docstring"""


 _lowercase							   =bool(os.getenv('''RUN_SLOW'''  ,		0		)		)
 if run_slow:
  assert True
 else:
  assert False, "should have been skipped"
def        UpperCAmelCase_      (							)  ->    Optional[Any]:







 """simple docstring"""


 _lowercase							   =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    lowerCamelCase__     ( unittest.TestCase):





     @slow
     @require_torch_gpu
     def   __A      (self )  ->     Optional[Any]:
      check_slow_torch_cuda()





     @require_torch_gpu
     @slow
     def   __A      (self )  ->     int:
      check_slow_torch_cuda()





     @parameterized.expand(UpperCAmelCase )
     @slow
     def   __A      (self	,  UpperCAmelCase=None )  ->     Any:
      check_slow()



@slow
@require_torch_gpu
def        UpperCAmelCase_      (							)  ->    str:







 """simple docstring"""


 check_slow_torch_cuda()
@require_torch_gpu
@slow
def        UpperCAmelCase_      (							)  ->    Union[str, Any]:







 """simple docstring"""


 check_slow_torch_cuda()
@slow
@pytest.mark.parametrize('''param'''  ,		[1]		)
def        UpperCAmelCase_      (							__snake_case		)  ->    List[Any]:







 """simple docstring"""


 check_slow()



@pytest.mark.parametrize('''param'''  ,		[1]		)
@slow
def        UpperCAmelCase_      (							__snake_case		)  ->    Optional[int]:







 """simple docstring"""


 check_slow()





from ..utils import DummyObject, requires_backends







class    lowerCamelCase__     ( metaclass=lowerCAmelCase):
     SCREAMING_SNAKE_CASE__       =    ['''tensorflow_text''']





     def __init__(self	,  *UpperCAmelCase	,  **UpperCAmelCase )  ->     Any:
      requires_backends(self	,  ['''tensorflow_text'''] )

