




'''simple docstring'''


def 		snake_case_   (UpperCamelCase	:  str			,						UpperCamelCase	:  bool = False				):





							'''simple docstring'''


							if not isinstance(UpperCamelCase			,						UpperCamelCase				):
														_a     					=    f'Expected string as input, found {type(UpperCamelCase				)}'
														raise ValueError(UpperCamelCase				)
							if not isinstance(UpperCamelCase			,						UpperCamelCase				):
														_a     					=    f'Expected boolean as use_pascal parameter, found {type(UpperCamelCase				)}'
														raise ValueError(UpperCamelCase				)

							_a     					=    input_str.split('''_'''				)

							_a     					=    0 if use_pascal else 1

							_a     					=    words[start_index:]

							_a     					=    [word[0].upper() + word[1:] for word in words_to_capitalize]

							_a     					=    '''''' if use_pascal else words[0]

							return "".join([initial_word, *capitalized_words]				)


if __name__ == "__main__":
				from doctest import testmod

				testmod()







'''simple docstring'''


from ..utils import DummyObject, requires_backends

class       A   (		metaclass=_a   ):
							lowercase_          =    ['torch', 'scipy']







							def __init__(  self	:  Tuple							,      *lowerCAmelCase_	:  str							,      **lowerCAmelCase_	:  Any )      ->							Tuple:


														"""simple docstring"""


														requires_backends(self							,      ['''torch''', '''scipy'''] )







							@classmethod
							def        __lowerCAmelCase      (  cls	:  Dict							,      *lowerCAmelCase_	:  Dict							,      **lowerCAmelCase_	:  str )      ->							Tuple:


														"""simple docstring"""


														requires_backends(cls							,      ['''torch''', '''scipy'''] )







							@classmethod
							def        __lowerCAmelCase      (  cls	:  Optional[int]							,      *lowerCAmelCase_	:  str							,      **lowerCAmelCase_	:  List[str] )      ->							str:


														"""simple docstring"""


														requires_backends(cls							,      ['''torch''', '''scipy'''] )

