



"""simple docstring"""

from __future__ import annotations

from collections import namedtuple




def __lowercase    (							_a	,    _a	,    _a					):
    snake_case_				:  List[Any]       =			namedtuple('''result'''	,    '''name value'''					)
    if (voltage, current, power).count(0					) != 1:
        raise ValueError('''Only one argument must be 0'''					)
    elif power < 0:
        raise ValueError(
            '''Power cannot be negative in any electrical/electronics system'''					)
    elif voltage == 0:
        return result('''voltage'''	,    power / current					)
    elif current == 0:
        return result('''current'''	,    power / voltage					)
    elif power == 0:
        return result('''power'''	,    float(round(abs(voltage * current					)	,    2					)					)					)
    else:
        raise ValueError('''Exactly one argument must be 0'''					)


if __name__ == "__main__":
     import doctest

     doctest.testmod()










"""simple docstring"""

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

import numpy as np
import PIL
from PIL import Image

from ...utils import BaseOutput, is_torch_available, is_transformers_available




@dataclass
class  _UpperCAmelCase (    lowerCAmelCase__):
 _lowerCAmelCase     :    Union[List[PIL.Image.Image], np.ndarray]
 _lowerCAmelCase     :    Optional[List[bool]]


if is_transformers_available() and is_torch_available():
     from .pipeline_semantic_stable_diffusion import SemanticStableDiffusionPipeline





