


from __future__ import annotations

from typing import Any







def  SCREAMING_SNAKE_CASE_		(    __A				:    list[Any]       )			->	None:

       """simple docstring"""

       create_state_space_tree(__A						,					[]						,					0       )







def  SCREAMING_SNAKE_CASE_		(    __A				:    list[Any]						,					__A				:    list[Any]						,					__A				:    int       )			->	None:

       """simple docstring"""

       if index == len(__A       ):
              print(__A       )
              return

       create_state_space_tree(__A						,					__A						,					index + 1       )
       current_subsequence.append(sequence[index]       )
       create_state_space_tree(__A						,					__A						,					index + 1       )
       current_subsequence.pop()


if __name__ == "__main__":
   UpperCAmelCase_   :				list[Any]						      = [3, 1, 2, 4]
   generate_all_subsequences(seq)

   seq.clear()
   seq.extend(['A', 'B', 'C'])
   generate_all_subsequences(seq)






import os
import tempfile
import unittest

from transformers.models.marian.convert_marian_tatoeba_to_pytorch import DEFAULT_REPO, TatoebaConverter
from transformers.testing_utils import slow
from transformers.utils import cached_property
@unittest.skipUnless(os.path.exists(lowercase__    )		,					'''Tatoeba directory does not exist.'''    )
class 				SCREAMING_SNAKE_CASE__						(       unittest.TestCase    ):
      @cached_property
      def  SCREAMING_SNAKE_CASE							( self       : str  )	->    List[Any]:
             a_      :	Optional[Any]							=						tempfile.mkdtemp()
             return TatoebaConverter(save_dir=SCREAMING_SNAKE_CASE__  )
      @slow
      def  SCREAMING_SNAKE_CASE							( self       : List[Any]  )	->    Optional[Any]:
             self.resolver.convert_models(['heb-eng']  )

      @slow
      def  SCREAMING_SNAKE_CASE							( self       : int  )	->    Any:
             a_							,	a_      :	Dict							=						self.resolver.write_model_card('opus-mt-he-en'  ,							dry_run=SCREAMING_SNAKE_CASE__  )
             assert mmeta["long_pair"] == "heb-eng"


