

"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


SCREAMING_SNAKE_CASE_     :			Union[str, Any]	  =			{
    '''configuration_vision_encoder_decoder''': ['''VisionEncoderDecoderConfig''', '''VisionEncoderDecoderOnnxConfig''']
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     SCREAMING_SNAKE_CASE_     :			List[Any]	  =			['''VisionEncoderDecoderModel''']

try:
     if not is_tf_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     SCREAMING_SNAKE_CASE_     :			List[Any]	  =			['''TFVisionEncoderDecoderModel''']

try:
     if not is_flax_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     SCREAMING_SNAKE_CASE_     :			List[Any]	  =			['''FlaxVisionEncoderDecoderModel''']

if TYPE_CHECKING:
     from .configuration_vision_encoder_decoder import VisionEncoderDecoderConfig, VisionEncoderDecoderOnnxConfig

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_vision_encoder_decoder import VisionEncoderDecoderModel

     try:
          if not is_tf_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_tf_vision_encoder_decoder import TFVisionEncoderDecoderModel

     try:
          if not is_flax_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_flax_vision_encoder_decoder import FlaxVisionEncoderDecoderModel

else:
     import sys

     SCREAMING_SNAKE_CASE_     :			Union[str, Any]	  =			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)







"""simple docstring"""




from __future__ import annotations

from typing import Any



def 	UpperCAmelCase__   (				A__   )      ->      None:




   """simple docstring"""
   create_state_space_tree(A__	,    []	,    0   )



def 	UpperCAmelCase__   (				A__	,    A__	,    A__   )      ->      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__":
     SCREAMING_SNAKE_CASE_     :			list[Any]	  =			[3, 1, 2, 4]
     generate_all_subsequences(seq)

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




