



"""simple docstring"""
A:   Union[str, Any]								=		frozenset(
    [
        "prompt",
        "height",
        "width",
        "guidance_scale",
        "negative_prompt",
        "prompt_embeds",
        "negative_prompt_embeds",
        "cross_attention_kwargs",
    ]
)

A:   Optional[int]								=		frozenset(["prompt", "negative_prompt"])

A:   Union[str, Any]								=		frozenset([])

A:   Optional[Any]								=		frozenset(["image"])

A:   str								=		frozenset(
    [
        "image",
        "height",
        "width",
        "guidance_scale",
    ]
)

A:   Dict								=		frozenset(["image"])

A:   Dict								=		frozenset(
    [
        "prompt",
        "image",
        "height",
        "width",
        "guidance_scale",
        "negative_prompt",
        "prompt_embeds",
        "negative_prompt_embeds",
    ]
)

A:   Tuple								=		frozenset(["prompt", "image", "negative_prompt"])

A:   List[Any]								=		frozenset(
    [
        # Text guided image variation with an image mask
        "prompt",
        "image",
        "mask_image",
        "height",
        "width",
        "guidance_scale",
        "negative_prompt",
        "prompt_embeds",
        "negative_prompt_embeds",
    ]
)

A:   Optional[Any]								=		frozenset(["prompt", "image", "mask_image", "negative_prompt"])

A:   List[Any]								=		frozenset(
    [
        # image variation with an image mask
        "image",
        "mask_image",
        "height",
        "width",
        "guidance_scale",
    ]
)

A:   Union[str, Any]								=		frozenset(["image", "mask_image"])

A:   Dict								=		frozenset(
    [
        "example_image",
        "image",
        "mask_image",
        "height",
        "width",
        "guidance_scale",
    ]
)

A:   List[str]								=		frozenset(["example_image", "image", "mask_image"])

A:   Any								=		frozenset(["class_labels"])

A:   Optional[int]								=		frozenset(["class_labels"])

A:   int								=		frozenset(["batch_size"])

A:   Union[str, Any]								=		frozenset([])

A:   Union[str, Any]								=		frozenset(["batch_size"])

A:   int								=		frozenset([])

A:   List[Any]								=		frozenset(
    [
        "prompt",
        "audio_length_in_s",
        "guidance_scale",
        "negative_prompt",
        "prompt_embeds",
        "negative_prompt_embeds",
        "cross_attention_kwargs",
    ]
)

A:   Any								=		frozenset(["prompt", "negative_prompt"])
A:   List[str]								=		frozenset(["input_tokens"])

A:   str								=		frozenset(["input_tokens"])





"""simple docstring"""
def       _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"""						)
 if len(UpperCamelCase						) == 1:
  return True
 UpperCAmelCase	:					Union[str, Any]	=	series[1] - series[0]
 for index in range(len(UpperCamelCase						) - 1						):
  if series[index + 1] - series[index] != common_diff:
   return False
 return True

def       _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"""						)
 UpperCAmelCase	:					Any	=	0
 for val in series:
  answer += val
 return answer / len(UpperCamelCase						)


if __name__ == "__main__":
      import doctest

      doctest.testmod()
