

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 	lowerCamelCase__	(   _a							,     _a):
	SCREAMING_SNAKE_CASE				: Optional[int]			       =    Version("1.0.0")
	assert (version == other) is expected_equality
	assert (version != other) is not expected_equality
	assert (hash(_a) == hash(_a)) is expected_equality


import re

def 	lowerCamelCase__	(   _a):
	def docstring_decorator(_a):
		SCREAMING_SNAKE_CASE				: List[Any]			       =    fn.__doc__
		SCREAMING_SNAKE_CASE				: List[str]			       =    func_doc.split("\n")
		SCREAMING_SNAKE_CASE				: Dict			       =    0
		while i < len(_a) and re.search(r"^\s*Examples?:\s*$"							,     lines[i]) is None:
			i += 1
		if i < len(_a):
			SCREAMING_SNAKE_CASE				: Tuple			       =    example_docstring
			SCREAMING_SNAKE_CASE				: List[Any]			       =    "\n".join(_a)
		else:
			raise ValueError(
			    f"The function {fn} should have an empty 'Examples:' in its docstring as placeholder, "
			    f"current docstring is:\n{func_doc}")
		SCREAMING_SNAKE_CASE				: Optional[int]			       =    func_doc
		return fn

	return docstring_decorator