




'''simple docstring'''






import unittest
import warnings

from datasets.utils import experimental


@experimental
def 			snake_case_					( )				->       Any:
							return "success"




class     SCREAMING_SNAKE_CASE(							unittest.TestCase      ):







	"""simple docstring"""






	def 					A     (						self      :					Optional[int]		)      ->		Dict:


								with warnings.catch_warnings(record=lowerCAmelCase__		) as w:
															warnings.simplefilter('''always'''		)
															self.assertEqual(dummy_function()		,      '''success'''		)
								self.assertEqual(len(lowerCAmelCase__		)		,      1		)










'''simple docstring'''






import re


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

							return docstring_decorator





