






from math import sqrt




def       _a   (							lowerCamelCase__				)  ->      list[int]:
 lowerCamelCase_							:    Optional[Any]							=     [1]
 for i in range(2 ,			int(sqrt(lowerCamelCase__				)				) + 1 ,			1				):
  if number % i == 0:
   values.append(lowerCamelCase__				)
   if int(number // i				) != i:
    values.append(int(number // i				)				)
 return sorted(lowerCamelCase__				)




def       _a   (							lowerCamelCase__				)  ->      bool:
 return sum(factors(lowerCamelCase__				)				) > n




def       _a   (							lowerCamelCase__				)  ->      bool:
 lowerCamelCase_							:    List[Any]							=     factors(lowerCamelCase__				)
 lowerCamelCase_							:    Union[str, Any]							=     len(lowerCamelCase__				)
 lowerCamelCase_							:    int							=     [[0 for i in range(number + 1				)] for j in range(r + 1				)]
 for i in range(r + 1				):
  lowerCamelCase_							:    Optional[Any]							=     True

 for i in range(1 ,			number + 1				):
  lowerCamelCase_							:    Optional[int]							=     False

 for i in range(1 ,			r + 1				):
  for j in range(1 ,			number + 1				):
   if j < values[i - 1]:
    lowerCamelCase_							:    str							=     subset[i - 1][j]
   else:
    lowerCamelCase_							:    Union[str, Any]							=     subset[i - 1][j] or subset[i - 1][j - values[i - 1]]

 return subset[r][number] != 0




def       _a   (							lowerCamelCase__				)  ->      bool:
 return abundant(lowerCamelCase__				) and not semi_perfect(lowerCamelCase__				)


if __name__ == "__main__":
       import doctest

       doctest.testmod(verbose=True)
       for number in (6_9, 7_0, 7_1):
              print(f'''{number} is {'' if weird(number) else 'not '}weird.''')








import unittest

from transformers import load_tool
from transformers.tools.agent_types import AGENT_TYPE_MAPPING

from .test_tools_common import ToolTesterMixin, output_types




class 	lowerCamelCase__				(							unittest.TestCase,   UpperCAmelCase ):






      def      UpperCAmelCase_     (self					:    Any		)       ->   Union[str, Any]:


       """simple docstring"""






       lowerCamelCase_							:    str							=     load_tool('translation'		)
       self.tool.setup()
       lowerCamelCase_							:    Optional[int]							=     load_tool('translation'		,		remote=_snake_case		)






      def      UpperCAmelCase_     (self					:    Any		)       ->   Dict:


       """simple docstring"""






       lowerCamelCase_							:    Optional[Any]							=     self.tool('Hey, what\'s up?'		,		src_lang='English'		,		tgt_lang='French'		)
       self.assertEqual(_snake_case		,		'- Hé, comment ça va?'		)






      def      UpperCAmelCase_     (self					:    Optional[int]		)       ->   Dict:


       """simple docstring"""






       lowerCamelCase_							:    Optional[int]							=     self.remote_tool('Hey, what\'s up?'		,		src_lang='English'		,		tgt_lang='French'		)
       self.assertEqual(_snake_case		,		'- Hé, comment ça va?'		)






      def      UpperCAmelCase_     (self					:    List[str]		)       ->   Optional[int]:


       """simple docstring"""






       lowerCamelCase_							:    Union[str, Any]							=     self.tool(text='Hey, what\'s up?'		,		src_lang='English'		,		tgt_lang='French'		)
       self.assertEqual(_snake_case		,		'- Hé, comment ça va?'		)






      def      UpperCAmelCase_     (self					:    Any		)       ->   Tuple:


       """simple docstring"""






       lowerCamelCase_							:    Optional[int]							=     self.remote_tool(text='Hey, what\'s up?'		,		src_lang='English'		,		tgt_lang='French'		)
       self.assertEqual(_snake_case		,		'- Hé, comment ça va?'		)






      def      UpperCAmelCase_     (self					:    Union[str, Any]		)       ->   Any:


       """simple docstring"""






       lowerCamelCase_							:    str							=     ['Hey, what\'s up?', 'English', 'Spanish']
       lowerCamelCase_							:    Any							=     self.tool(*_snake_case		)

       # There is a single output
       if len(self.tool.outputs		) == 1:
        lowerCamelCase_							:    Any							=     [outputs]

       self.assertListEqual(output_types(_snake_case		)		,		self.tool.outputs		)






      def      UpperCAmelCase_     (self					:    Tuple		)       ->   Optional[Any]:


       """simple docstring"""






       lowerCamelCase_							:    List[str]							=     ['Hey, what\'s up?', 'English', 'Spanish']
       lowerCamelCase_							:    Optional[Any]							=     self.tool(*_snake_case		)

       if not isinstance(_snake_case		,		_snake_case		):
        lowerCamelCase_							:    List[str]							=     [outputs]

       self.assertEqual(len(_snake_case		)		,		len(self.tool.outputs		)		)

       for output, output_type in zip(_snake_case		,		self.tool.outputs		):
        lowerCamelCase_							:    Optional[int]							=     AGENT_TYPE_MAPPING[output_type]
        self.assertTrue(isinstance(_snake_case		,		_snake_case		)		)






      def      UpperCAmelCase_     (self					:    Any		)       ->   Optional[Any]:


       """simple docstring"""






       lowerCamelCase_							:    Dict							=     ['Hey, what\'s up?', 'English', 'Spanish']

       lowerCamelCase_							:    List[str]							=     []

       for _input, input_type in zip(_snake_case		,		self.tool.inputs		):
        if isinstance(_snake_case		,		_snake_case		):
         _inputs.append([AGENT_TYPE_MAPPING[_input_type](_input		) for _input_type in input_type]		)
        else:
         _inputs.append(AGENT_TYPE_MAPPING[input_type](_input		)		)

        # Should not raise an error
       lowerCamelCase_							:    Any							=     self.tool(*_snake_case		)

       if not isinstance(_snake_case		,		_snake_case		):
        lowerCamelCase_							:    Optional[Any]							=     [outputs]

       self.assertEqual(len(_snake_case		)		,		len(self.tool.outputs		)		)
