



'''simple docstring'''





class     UpperCAmelCase_       :
    """simple docstring"""







    def __init__(    self					:     Dict ,     snake_case_					:     list[int]						):
          snake_case__  :    List[str]    						=      len(snake_case_						)
          snake_case__  :    Union[str, Any]    						=      [0] * len_array

          if len_array > 0:
                snake_case__  :    str    						=      array[0]

          for i in range(1 ,     snake_case_						):
                snake_case__  :    int    						=      self.prefix_sum[i - 1] + array[i]




    def lowerCamelCase       (    self					:     str ,     snake_case_					:     int ,     snake_case_					:     int						):
          if start == 0:
                return self.prefix_sum[end]

          return self.prefix_sum[end] - self.prefix_sum[start - 1]




    def lowerCamelCase       (    self					:     Any ,     snake_case_					:     int						):
          snake_case__  :    Optional[Any]    						=      {0}
          for sum_item in self.prefix_sum:
                if sum_item - target_sum in sums:
                      return True

                sums.add(snake_case_						)

          return False


if __name__ == "__main__":
       import doctest

       doctest.testmod()





'''simple docstring'''





__a          =		frozenset(
    [
        "prompt",
        "height",
        "width",
        "guidance_scale",
        "negative_prompt",
        "prompt_embeds",
        "negative_prompt_embeds",
        "cross_attention_kwargs",
    ]
)

__a          =		frozenset(["prompt", "negative_prompt"])

__a          =		frozenset([])

__a          =		frozenset(["image"])

__a          =		frozenset(
    [
        "image",
        "height",
        "width",
        "guidance_scale",
    ]
)

__a          =		frozenset(["image"])

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

__a          =		frozenset(["prompt", "image", "negative_prompt"])

__a          =		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          =		frozenset(["prompt", "image", "mask_image", "negative_prompt"])

__a          =		frozenset(
    [
        # image variation with an image mask
        "image",
        "mask_image",
        "height",
        "width",
        "guidance_scale",
    ]
)

__a          =		frozenset(["image", "mask_image"])

__a          =		frozenset(
    [
        "example_image",
        "image",
        "mask_image",
        "height",
        "width",
        "guidance_scale",
    ]
)

__a          =		frozenset(["example_image", "image", "mask_image"])

__a          =		frozenset(["class_labels"])

__a          =		frozenset(["class_labels"])

__a          =		frozenset(["batch_size"])

__a          =		frozenset([])

__a          =		frozenset(["batch_size"])

__a          =		frozenset([])

__a          =		frozenset(
    [
        "prompt",
        "audio_length_in_s",
        "guidance_scale",
        "negative_prompt",
        "prompt_embeds",
        "negative_prompt_embeds",
        "cross_attention_kwargs",
    ]
)

__a          =		frozenset(["prompt", "negative_prompt"])
__a          =		frozenset(["input_tokens"])

__a          =		frozenset(["input_tokens"])
