




def       snake_case      (							A		,     A    )							->							int:




	'''simple docstring'''


	lowerCamelCase_							:	Tuple							     =							0
	for ele in arr:
		total_sum += product_sum(A		,     depth + 1    ) if isinstance(A		,     A    ) else ele
	return total_sum * depth






def       snake_case      (							A    )							->							int:




	'''simple docstring'''


	return product_sum(A		,     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
