




'''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   _a							(		unittest.TestCase   ,   __lowerCAmelCase				):






     def 							_lowercase      (					self       )				->     Any:
          _snake_case				= load_tool("text-to-speech"       )
          self.tool.setup()






     def 							_lowercase      (					self       )				->     Optional[int]:
          # SpeechT5 isn't deterministic
          torch.manual_seed(0       )
          _snake_case				= self.tool("hey"       )
          _snake_case				= result.to_raw()
          self.assertTrue(
              torch.allclose(
                  resulting_tensor[:3]   ,torch.tensor([-0.0_0_0_5_9_6_6_6_6_8_8_3_2_1_1_5_8_2_9, -0.0_0_0_3_6_5_7_6_4_0_1_9_0_7_9_5_0_6_4, -0.0_0_0_1_3_4_3_9_5_0_2_7_9_9_8_8_3_4_8_5]       )   ,)       )






     def 							_lowercase      (					self       )				->     Union[str, Any]:
          # SpeechT5 isn't deterministic
          torch.manual_seed(0       )
          _snake_case				= self.tool("hey"       )
          _snake_case				= result.to_raw()
          self.assertTrue(
              torch.allclose(
                  resulting_tensor[:3]   ,torch.tensor([-0.0_0_0_5_9_6_6_6_6_8_8_3_2_1_1_5_8_2_9, -0.0_0_0_3_6_5_7_6_4_0_1_9_0_7_9_5_0_6_4, -0.0_0_0_1_3_4_3_9_5_0_2_7_9_9_8_8_3_4_8_5]       )   ,)       )








'''simple docstring'''





from math import ceil





def       __a      (  _UpperCamelCase:       int = 1_001       )		->					int:

     """simple docstring"""




     _snake_case				= 1

     for i in range(1   ,		int(ceil(n / 2.0       )       )       ):
          _snake_case				= 2 * i + 1
          _snake_case				= 2 * i
          _snake_case				= total + 4 * odd**2 - 6 * even

     return total


if __name__ == "__main__":
   import sys

   if len(sys.argv) == 1:
      print(solution())
   else:
      try:
         UpperCamelCase_		:     int          =		int(sys.argv[1])
         print(solution(n))
      except ValueError:
         print('''Invalid entry - please enter a number''')


