


def 			a_   (					SCREAMING_SNAKE_CASE__      :   int  ):
       '''simple docstring'''





       if not isinstance(SCREAMING_SNAKE_CASE__	,    SCREAMING_SNAKE_CASE__  ):
              _lowerCamelCase :	int						=F'''Input value of [number={number}] must be an integer'''
              raise TypeError(SCREAMING_SNAKE_CASE__  )
       if number < 1:
              raise ValueError('Input must be a positive integer'  )
       return number * (2 * number - 1)


if __name__ == "__main__":
 import doctest

 doctest.testmod()






from dataclasses import dataclass
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
 from .image_encoder import PaintByExampleImageEncoder
 from .pipeline_paint_by_example import PaintByExamplePipeline


