



import pytest

from datasets.utils.version import Version







@pytest.mark.parametrize(
    '''other, expected_equality'''							,					[
        (Version('''1.0.0'''	), True),
        ('''1.0.0''', True),
        (Version('''2.0.0'''	), False),
        ('''2.0.0''', False),
        ('''1''', False),
        ('''a''', False),
        (1, False),
        (None, False),
    ]							,					)
def 				A			(		__UpperCAmelCase							,					__UpperCAmelCase	)       ->       List[str]:



						'''simple docstring'''






						UpperCAmelCase_     							=     Version('''1.0.0'''	)
						assert (version == other) is expected_equality
						assert (version != other) is not expected_equality
						assert (hash(__UpperCAmelCase	) == hash(__UpperCAmelCase	)) is expected_equality









'''simple docstring'''







from __future__ import annotations






def       lowerCAmelCase__       (				lowerCamelCase     :			list   ):
       _A     :	Union[str, Any]      =					sorted(lowerCamelCase   )
       _A     :	Tuple      =					len(lowerCamelCase   )
       _A     :	int      =					length >> 1
       return (
           (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
           if length % 2 == 0
           else sorted_list[mid_index]
       )






def       lowerCAmelCase__       (				):
       import doctest

       doctest.testmod()


if __name__ == "__main__":
   main()






