


'''simple docstring'''


import unittest

from transformers import load_tool
from transformers.utils import is_torch_available


if is_torch_available():
      import torch

from transformers.testing_utils import require_torch

from .test_tools_common import ToolTesterMixin







@require_torch
class 							__magic_name__	(       unittest.TestCase    ,		lowerCAmelCase ):

     """simple docstring"""






     def lowerCAmelCase__  (   self		):


          '''simple docstring'''





          __A	:       Optional[Any]      =							load_tool("text-to-speech"		)
          self.tool.setup()


     def lowerCAmelCase__  (   self		):


          '''simple docstring'''





          torch.manual_seed(0		)
          __A	:       Optional[Any]      =							self.tool("hey"		)
          __A	:       List[Any]      =							result.to_raw()
          self.assertTrue(
              torch.allclose(
                  resulting_tensor[:3]			,     torch.tensor([-0.000_5966_6688_3211_5829, -0.000_3657_6401_9079_5064, -0.0001_3439_5027_9988_3485]		)			,     )		)


     def lowerCAmelCase__  (   self		):


          '''simple docstring'''





          torch.manual_seed(0		)
          __A	:       int      =							self.tool("hey"		)
          __A	:       Dict      =							result.to_raw()
          self.assertTrue(
              torch.allclose(
                  resulting_tensor[:3]			,     torch.tensor([-0.000_5966_6688_3211_5829, -0.000_3657_6401_9079_5064, -0.0001_3439_5027_9988_3485]		)			,     )		)





'''simple docstring'''


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     __A	:       List[str]      =							1
     __A	:       Union[str, Any]      =							2
     while i * i <= n:
          __A	:       List[Any]      =							0
          while n % i == 0:
               n //= i
               multiplicity += 1
          n_divisors *= multiplicity + 1
          i += 1
     if n > 1:
          n_divisors *= 2
     return n_divisors


def 		_lowercase ():




     '''simple docstring'''





     __A	:       Optional[Any]      =							1
     __A	:       Dict      =							1

     while True:
          i += 1
          t_num += i

          if count_divisors(SCREAMING_SNAKE_CASE							) > 500:
               break

     return t_num


if __name__ == "__main__":
      print(solution())

