


"""simple docstring"""






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

UpperCamelCase__				:List[str]			   =	frozenset(["""prompt""", """negative_prompt"""])

UpperCamelCase__				:Tuple			   =	frozenset([])

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

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

UpperCamelCase__				:Any			   =	frozenset(["""image"""])

UpperCamelCase__				:Optional[int]			   =	frozenset(
    [
        """prompt""",
        """image""",
        """height""",
        """width""",
        """guidance_scale""",
        """negative_prompt""",
        """prompt_embeds""",
        """negative_prompt_embeds""",
    ]
)

UpperCamelCase__				:int			   =	frozenset(["""prompt""", """image""", """negative_prompt"""])

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

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

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

UpperCamelCase__				:Dict			   =	frozenset(["""image""", """mask_image"""])

UpperCamelCase__				:Tuple			   =	frozenset(
    [
        """example_image""",
        """image""",
        """mask_image""",
        """height""",
        """width""",
        """guidance_scale""",
    ]
)

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

UpperCamelCase__				:List[str]			   =	frozenset(["""class_labels"""])

UpperCamelCase__				:Union[str, Any]			   =	frozenset(["""class_labels"""])

UpperCamelCase__				:Any			   =	frozenset(["""batch_size"""])

UpperCamelCase__				:Optional[Any]			   =	frozenset([])

UpperCamelCase__				:Optional[Any]			   =	frozenset(["""batch_size"""])

UpperCamelCase__				:Optional[int]			   =	frozenset([])

UpperCamelCase__				:str			   =	frozenset(
    [
        """prompt""",
        """audio_length_in_s""",
        """guidance_scale""",
        """negative_prompt""",
        """prompt_embeds""",
        """negative_prompt_embeds""",
        """cross_attention_kwargs""",
    ]
)

UpperCamelCase__				:Union[str, Any]			   =	frozenset(["""prompt""", """negative_prompt"""])
UpperCamelCase__				:Tuple			   =	frozenset(["""input_tokens"""])

UpperCamelCase__				:int			   =	frozenset(["""input_tokens"""])





"""simple docstring"""






from collections.abc import Callable

import numpy as np





def 				A_       ( snake_case__       ,					snake_case__       ,					snake_case__       ,					snake_case__       ,					snake_case__		)					->  np.ndarray:
			_UpperCamelCase					:str					     =	int(np.ceil((x_end - xa) / step_size		)		)
			_UpperCamelCase					:Union[str, Any]					     =	np.zeros((n + 1,)		)
			_UpperCamelCase					:List[str]					     =	ya
			_UpperCamelCase					:Any					     =	xa

			for k in range(snake_case__		):
						_UpperCamelCase					:Union[str, Any]					     =	y[k] + step_size * ode_func(snake_case__       ,					y[k]		)
						x += step_size

			return y


if __name__ == "__main__":
					import doctest

					doctest.testmod()

