





def  SCREAMING_SNAKE_CASE__							(				UpperCamelCase__:							list			):
		if not isinstance(UpperCamelCase__    ,      UpperCamelCase__			):
				raise ValueError("""Input series is not valid, valid series - [1, 2/3, 2]"""			)
		if len(UpperCamelCase__			) == 0:
				raise ValueError("""Input list must be a non empty list"""			)
		if len(UpperCamelCase__			) == 1 and series[0] != 0:
				return True
		SCREAMING_SNAKE_CASE__								=					[]
		SCREAMING_SNAKE_CASE__								=					len(UpperCamelCase__			)
		for i in range(0    ,      UpperCamelCase__			):
				if series[i] == 0:
						raise ValueError("""Input series cannot have 0 as an element"""			)
				rec_series.append(1 / series[i]			)
		SCREAMING_SNAKE_CASE__								=					rec_series[1] - rec_series[0]
		for index in range(2    ,      UpperCamelCase__			):
				if rec_series[index] - rec_series[index - 1] != common_diff:
						return False
		return True






def  SCREAMING_SNAKE_CASE__							(				UpperCamelCase__:							list			):
		if not isinstance(UpperCamelCase__    ,      UpperCamelCase__			):
				raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""			)
		if len(UpperCamelCase__			) == 0:
				raise ValueError("""Input list must be a non empty list"""			)
		SCREAMING_SNAKE_CASE__								=					0
		for val in series:
				answer += 1 / val
		return len(UpperCamelCase__			) / answer


if __name__ == "__main__":
	import doctest

	doctest.testmod()

"""simple docstring"""

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



