






import pytest

from datasets.parallel import ParallelBackendConfig, parallel_backend
from datasets.utils.py_utils import map_nested

from .utils import require_dill_gt_0_3_2, require_joblibspark, require_not_windows







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     Tuple:  # picklable for multiprocessing
					return i + 1







@require_dill_gt_0_3_2
@require_joblibspark
@require_not_windows
def 		SCREAMING_SNAKE_CASE							( )			->     Tuple:
					with parallel_backend("spark"      ):
										assert ParallelBackendConfig.backend_name == "spark"

					UpperCamelCase__      :       int	    =  [1, 2, 3]
					with pytest.raises(__lowerCAmelCase      ):
										with parallel_backend("unsupported backend"      ):
															map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=2      )

					with pytest.raises(__lowerCAmelCase      ):
										with parallel_backend("unsupported backend"      ):
															map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=-1      )







@require_dill_gt_0_3_2
@require_joblibspark
@require_not_windows
@pytest.mark.parametrize("num_proc" ,   [2, -1]      )
def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     Dict:
					UpperCamelCase__      :       str	    =  [1, 2]
					UpperCamelCase__      :       Union[str, Any]	    =  {"a": 1, "b": 2}
					UpperCamelCase__      :       Dict	    =  {"a": [1, 2], "b": [3, 4]}
					UpperCamelCase__      :       Dict	    =  {"a": {"1": 1}, "b": 2}
					UpperCamelCase__      :       List[Any]	    =  {"a": 1, "b": 2, "c": 3, "d": 4}
					UpperCamelCase__      :       Tuple	    =  [2, 3]
					UpperCamelCase__      :       Optional[int]	    =  {"a": 2, "b": 3}
					UpperCamelCase__      :       Optional[Any]	    =  {"a": [2, 3], "b": [4, 5]}
					UpperCamelCase__      :       Any	    =  {"a": {"1": 2}, "b": 3}
					UpperCamelCase__      :       Tuple	    =  {"a": 2, "b": 3, "c": 4, "d": 5}

					with parallel_backend("spark"      ):
										assert map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=__lowerCAmelCase      ) == expected_map_nested_sa
										assert map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=__lowerCAmelCase      ) == expected_map_nested_sa
										assert map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=__lowerCAmelCase      ) == expected_map_nested_sa
										assert map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=__lowerCAmelCase      ) == expected_map_nested_sa
										assert map_nested(__lowerCAmelCase ,   __lowerCAmelCase ,   num_proc=__lowerCAmelCase      ) == expected_map_nested_sa







from ..utils import DummyObject, requires_backends





class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	str				=			['''torch''']







 def __init__(		self :       int							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[Any]				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Union[str, Any]				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       str							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[str]				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       List[Any]							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Any				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       Optional[int]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[Any]				=			['''torch''']







 def __init__(		self :       int							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Optional[int]				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     int:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     Optional[Any]:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     Optional[Any]:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     Union[str, Any]:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     Any:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     Dict:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )







def 		SCREAMING_SNAKE_CASE							( *__lowerCAmelCase ,   **__lowerCAmelCase      )			->     List[Any]:
     requires_backends(__lowerCAmelCase ,   ["torch"]      )





class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[str]				=			['''torch''']







 def __init__(		self :       Tuple							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Optional[int]				=			['''torch''']







 def __init__(		self :       List[Any]							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	str				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Any				=			['''torch''']







 def __init__(		self :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	str				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Any				=			['''torch''']







 def __init__(		self :       str							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	int				=			['''torch''']







 def __init__(		self :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Optional[int]				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[str]				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       Optional[int]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Any				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Any				=			['''torch''']







 def __init__(		self :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       str							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Union[str, Any]				=			['''torch''']







 def __init__(		self :       str							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Any				=			['''torch''']







 def __init__(		self :       int							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Union[str, Any]				=			['''torch''']







 def __init__(		self :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Optional[int]				=			['''torch''']







 def __init__(		self :       int							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[Any]				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Optional[int]				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	str				=			['''torch''']







 def __init__(		self :       List[str]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Optional[int]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       str							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Optional[int]							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	str				=			['''torch''']







 def __init__(		self :       Tuple							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[Any]				=			['''torch''']







 def __init__(		self :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Union[str, Any]				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	str				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Union[str, Any]				=			['''torch''']







 def __init__(		self :       Dict							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       List[str]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Any							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Union[str, Any]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       Tuple						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Optional[int]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       str							,       *SCREAMING_SNAKE_CASE :       Any							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[Any]				=			['''torch''']







 def __init__(		self :       Tuple							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       Dict							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Optional[int]				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       List[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       int							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	List[str]				=			['''torch''']







 def __init__(		self :       int							,       *SCREAMING_SNAKE_CASE :       Tuple							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[str]							,       *SCREAMING_SNAKE_CASE :       List[str]							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       List[Any]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       Dict						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Tuple				=			['''torch''']







 def __init__(		self :       Any							,       *SCREAMING_SNAKE_CASE :       str							,       **SCREAMING_SNAKE_CASE :       Any						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Tuple							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       Optional[Any]							,       **SCREAMING_SNAKE_CASE :       int						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







class       __a  (   metaclass=A__	):
 _lowerCAmelCase	:	Dict				=			['''torch''']







 def __init__(		self :       Optional[int]							,       *SCREAMING_SNAKE_CASE :       List[Any]							,       **SCREAMING_SNAKE_CASE :       str						):


      '''simple docstring'''






      requires_backends(self							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Optional[Any]							,       *SCREAMING_SNAKE_CASE :       int							,       **SCREAMING_SNAKE_CASE :       Union[str, Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)







 @classmethod
 def  __lowercase (		cls :       Dict							,       *SCREAMING_SNAKE_CASE :       Union[str, Any]							,       **SCREAMING_SNAKE_CASE :       Optional[Any]						):


      '''simple docstring'''






      requires_backends(cls							,       ["torch"]						)