





from typing import TYPE_CHECKING

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


_lowerCamelCase :    Tuple  							= {
    '''configuration_vision_encoder_decoder''': ['''VisionEncoderDecoderConfig''', '''VisionEncoderDecoderOnnxConfig''']
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		_lowerCamelCase :    int  							= ['''VisionEncoderDecoderModel''']

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

try:
		if not is_flax_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		_lowerCamelCase :    str  							= ['''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

		_lowerCamelCase :    Optional[Any]  							= _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)













from __future__ import annotations




def _a (  SCREAMING_SNAKE_CASE__      :  list[float]			,				SCREAMING_SNAKE_CASE__      :  list[float]       )	->    float:

							'''simple docstring'''






							SCREAMING_SNAKE_CASE__       :      List[Any]     =						sorted(numsa + numsa       )
							SCREAMING_SNAKE_CASE__   ,SCREAMING_SNAKE_CASE__       :      Dict     =						divmod(len(SCREAMING_SNAKE_CASE__       )			,				2       )
							if mod == 1:
														return all_numbers[div]
							else:
														return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		_lowerCamelCase :    List[str]  							= [float(x) for x in input('''Enter the elements of first array: ''').split()]
		_lowerCamelCase :    Any  							= [float(x) for x in input('''Enter the elements of second array: ''').split()]
		print(f"The median of two arrays is: {median_of_two_arrays(array_a, array_a)}")






