



'''simple docstring'''






from ..utils import DummyObject, requires_backends

class     SCREAMING_SNAKE_CASE(							metaclass=A__      ):







	"""simple docstring"""






	lowerCamelCase__      			=	["""torch""", """transformers""", """k_diffusion"""]







	def __init__(						self      :					str		,      *__snake_case      :					Optional[int]		,      **__snake_case      :					Tuple		)      ->		List[Any]:
								requires_backends(self		,      ['''torch''', '''transformers''', '''k_diffusion''']		)







	@classmethod
	def 					A     (						cls      :					Optional[int]		,      *__snake_case      :					str		,      **__snake_case      :					str		)      ->		Tuple:
								requires_backends(cls		,      ['''torch''', '''transformers''', '''k_diffusion''']		)







	@classmethod
	def 					A     (						cls      :					str		,      *__snake_case      :					Any		,      **__snake_case      :					Any		)      ->		Optional[int]:
								requires_backends(cls		,      ['''torch''', '''transformers''', '''k_diffusion''']		)










'''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





