






from pathlib import Path

import fire
from tqdm import tqdm







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase="ro" ,   __lowerCAmelCase="en" ,   __lowerCAmelCase="wmt16" ,   __lowerCAmelCase=None      )			->     None:
     try:
          import datasets
     except (ModuleNotFoundError, ImportError):
          raise ImportError("run pip install datasets"      )
     UpperCamelCase__      :       Optional[Any]	    =  f'{src_lang}-{tgt_lang}'
     print(f'Converting {dataset}-{pair}'      )
     UpperCamelCase__      :       Any	    =  datasets.load_dataset(__lowerCAmelCase ,   __lowerCAmelCase      )
     if save_dir is None:
          UpperCamelCase__      :       Dict	    =  f'{dataset}-{pair}'
     UpperCamelCase__      :       List[str]	    =  Path(__lowerCAmelCase      )
     save_dir.mkdir(exist_ok=__lowerCAmelCase      )

     for split in ds.keys():
          print(f'Splitting {split} with {ds[split].num_rows} records'      )

          # to save to val.source, val.target like summary datasets
          UpperCamelCase__      :       Any	    =  "val" if split == "validation" else split
          UpperCamelCase__      :       Dict	    =  save_dir.joinpath(f'{fn}.source'      )
          UpperCamelCase__      :       List[str]	    =  save_dir.joinpath(f'{fn}.target'      )
          UpperCamelCase__      :       Tuple	    =  src_path.open("w+"      )
          UpperCamelCase__      :       Optional[Any]	    =  tgt_path.open("w+"      )

          # reader is the bottleneck so writing one record at a time doesn't slow things down
          for x in tqdm(ds[split]      ):
               UpperCamelCase__      :       Optional[int]	    =  x["translation"]
               src_fp.write(ex[src_lang] + "\n"      )
               tgt_fp.write(ex[tgt_lang] + "\n"      )

     print(f'Saved {dataset} dataset to {save_dir}'      )


if __name__ == "__main__":
 fire.Fire(download_wmt_dataset)







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"]						)