
'''simple docstring'''





def 							snake_case				(		UpperCAmelCase   ,	UpperCAmelCase   ,	UpperCAmelCase   ,	UpperCAmelCase						)->      int:







      """simple docstring"""
      __A													=      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 							snake_case				(		UpperCAmelCase   ,	UpperCAmelCase						)->      list:







      """simple docstring"""
      __A													=      0
      if matrix[index][0] == value:
            return [index, 0]
      while index < len(UpperCAmelCase						) and matrix[index][0] < value:
            __A													=      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






