"""simple docstring"""





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin
class        _snake_case   (    unittest.TestCase ,       a__						):






						def 					lowerCamelCase__   (				self					:	Optional[int]			):
													__lowerCamelCase    :						Any						      =   load_tool("text-classification"			)
													self.tool.setup()
													__lowerCamelCase    :						Optional[int]						      =   load_tool("text-classification"							,    remote=UpperCAmelCase			)






						def 					lowerCamelCase__   (				self					:	Any			):
													__lowerCamelCase    :						str						      =   self.tool("That\'s quite cool"							,    ["positive", "negative"]			)
													self.assertEqual(UpperCAmelCase							,    "positive"			)






						def 					lowerCamelCase__   (				self					:	Optional[Any]			):
													__lowerCamelCase    :						Any						      =   self.remote_tool("That\'s quite cool"							,    ["positive", "negative"]			)
													self.assertEqual(UpperCAmelCase							,    "positive"			)






						def 					lowerCamelCase__   (				self					:	str			):
													__lowerCamelCase    :						Optional[int]						      =   self.tool(text="That\'s quite cool"							,    labels=["positive", "negative"]			)
													self.assertEqual(UpperCAmelCase							,    "positive"			)







						def 					lowerCamelCase__   (				self					:	str			):
													__lowerCamelCase    :						List[str]						      =   self.remote_tool(text="That\'s quite cool"							,    labels=["positive", "negative"]			)
													self.assertEqual(UpperCAmelCase							,    "positive"			)


def      a      (			A__	:   str      ,   A__	:   bool = False     )    ->      str:





      """simple docstring"""



      if not isinstance(A__      ,   A__     ):
            _lowercase	       =F'''Expected string as input, found {type(A__     )}'''
            raise ValueError(A__     )
      if not isinstance(A__      ,   A__     ):
            _lowercase	       =F'''Expected boolean as use_pascal parameter, found {type(A__     )}'''
            raise ValueError(A__     )

      _lowercase	       =input_str.split('_'     )

      _lowercase	       =0 if use_pascal else 1

      _lowercase	       =words[start_index:]

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

      _lowercase	       ='' if use_pascal else words[0]

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


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

  testmod()


