





def   _lowercase       (    _UpperCAmelCase      ,   _UpperCAmelCase      ,   _UpperCAmelCase      ,   _UpperCAmelCase					)    ->	int:
				lowerCamelCase									=int((lower_bound + upper_bound) // 2					)
				if array[r] == value:
								return r
				if lower_bound >= upper_bound:
								return -1
				if array[r] < value:
								return binary_search(_UpperCAmelCase      ,   r + 1      ,   _UpperCAmelCase      ,   _UpperCAmelCase					)
				else:
								return binary_search(_UpperCAmelCase      ,   _UpperCAmelCase      ,   r - 1      ,   _UpperCAmelCase					)





def   _lowercase       (    _UpperCAmelCase      ,   _UpperCAmelCase					)    ->	list:
				lowerCamelCase									=0
				if matrix[index][0] == value:
								return [index, 0]
				while index < len(_UpperCAmelCase					) and matrix[index][0] < value:
								lowerCamelCase									=binary_search(matrix[index]      ,   0      ,   len(matrix[index]					) - 1      ,   _UpperCAmelCase					)
								if r != -1:
												return [index, r]
								index += 1
				return [-1, -1]


if __name__ == "__main__":
							import doctest

							doctest.testmod()







'''simple docstring'''





from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
 if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.27.0")):
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 from ...utils.dummy_torch_and_transformers_objects import (
     AudioLDMPipeline,
 )
else:
 from .pipeline_audioldm import AudioLDMPipeline






