






'''simple docstring'''




from transformers import PretrainedConfig

class      _UpperCAmelCase    (  snake_case_		):




			"""simple docstring"""

			snake_case					       =		'''custom'''

			def __init__(	self				:			int   ,   __UpperCAmelCase				:			Union[str, Any]=1   ,   **__UpperCAmelCase				:			Tuple	):





									'''simple docstring'''





									_A      =			attribute
									super().__init__(**__UpperCAmelCase	)





class      _UpperCAmelCase    (  snake_case_		):




			"""simple docstring"""

			snake_case					       =		'''custom'''

			def __init__(	self				:			List[str]   ,   __UpperCAmelCase				:			List[str]=1   ,   **__UpperCAmelCase				:			Optional[Any]	):





									'''simple docstring'''





									_A      =			attribute













'''simple docstring'''




def       __lowercase		(    __lowercase ) ->		int:

      '''simple docstring'''


      _A      =			str(__lowercase ).strip()
      if not bin_string:
            raise ValueError("Empty string was passed to the function" )
      _A      =			bin_string[0] == "-"
      if is_negative:
            _A      =			bin_string[1:]
      if not all(char in "01" for char in bin_string ):
            raise ValueError("Non-binary value was passed to the function" )
      _A      =			0
      for char in bin_string:
            _A      =			2 * decimal_number + int(__lowercase )
      return -decimal_number if is_negative else decimal_number


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

    testmod()





