code: 
  
  
  '''simple docstring'''
  
  
  
  import torch
  
  from transformers import PreTrainedModel
  
  from .custom_configuration import CustomConfig, NoSuperInitConfig
  
  
  
  
  
  class      UpperCAmelCase_						(a__						):
  
  
  
  
  
      """simple docstring"""
  
  
  
  
  
  
      lowerCamelCase						:      int							  =    CustomConfig
  
  
  
  
  
  
  
      def __init__(							self    ,  SCREAMING_SNAKE_CASE_			)       ->  Optional[int]:
           super().__init__(__A			)
           __lowerCamelCase     :			Union[str, Any]              =	torch.nn.Linear(config.hidden_size    ,  config.hidden_size			)
  
  
  
  
  
  
  
      def    lowercase_       (							self    ,  SCREAMING_SNAKE_CASE_			)       ->  Optional[int]:
           return self.linear(__A			)
  
  
  
  
  
  
  
      def    lowercase_       (							self    ,  SCREAMING_SNAKE_CASE_			)       ->  Dict:
           pass
  
  
  
  
  
  
  
  class      UpperCAmelCase_						(a__						):
  
  
  
  
  
      """simple docstring"""
  
  
  
  
  
  
      lowerCamelCase						:      Optional[int]							  =    NoSuperInitConfig
  
  
  
  
  
  
  
      def __init__(							self    ,  SCREAMING_SNAKE_CASE_			)       ->  Dict:
           super().__init__(__A			)
           __lowerCamelCase     :			Optional[Any]              =	torch.nn.Linear(config.attribute    ,  config.attribute			)
  
  
  
  
  
  
  
      def    lowercase_       (							self    ,  SCREAMING_SNAKE_CASE_			)       ->  Dict:
           return self.linear(__A			)
  
  
  
  
  
  
  
      def    lowercase_       (							self    ,  SCREAMING_SNAKE_CASE_			)       ->  int:
           pass
  
  
  
  
  
  
  
style_context: 
  
  
  '''simple docstring'''
  
  
  
  def     UpperCAmelCase__      (			UpperCAmelCase_					:       str							)  ->	int:
       __lowerCamelCase     :			Tuple              =	str(UpperCAmelCase_							).strip()
       if not bin_string:
            raise ValueError('Empty string was passed to the function'							)
       __lowerCamelCase     :			Optional[int]              =	bin_string[0] == '-'
       if is_negative:
            __lowerCamelCase     :			List[Any]              =	bin_string[1:]
       if not all(char in '01' for char in bin_string							):
            raise ValueError('Non-binary value was passed to the function'							)
       __lowerCamelCase     :			Optional[int]              =	0
       for char in bin_string:
            __lowerCamelCase     :			str              =	2 * decimal_number + int(UpperCAmelCase_							)
       return -decimal_number if is_negative else decimal_number
  
  
  if __name__ == "__main__":
        from doctest import testmod
  
        testmod()
  
  
  
  
  
  
  