def 				_snake_case     (       lowerCAmelCase							:       list       ,			lowerCAmelCase							:       int       ,			lowerCAmelCase							:       int       ,			lowerCAmelCase							:       int     ):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		Any    				=   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(lowerCAmelCase       ,			r + 1       ,			lowerCAmelCase       ,			lowerCAmelCase     )
		else:
				return binary_search(lowerCAmelCase       ,			lowerCAmelCase       ,			r - 1       ,			lowerCAmelCase     )




def 				_snake_case     (       lowerCAmelCase							:       int       ,			lowerCAmelCase							:       list     ):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		str    				=   0
		if matrix[index][0] == value:
				return [index, 0]
		while index < len(lowerCAmelCase     ) and matrix[index][0] < value:
				SCREAMING_SNAKE_CASE_  :		List[Any]    				=   binary_search(matrix[index]       ,			0       ,			len(matrix[index]     ) - 1       ,			lowerCAmelCase     )
				if r != -1:
						return [index, r]
				index += 1
		return [-1, -1]


if __name__ == "__main__":
			import doctest

			doctest.testmod()

from ..utils import DummyObject, requires_backends






class 		a__						( metaclass=A__ ):
					A     	=							['tensorflow_text']

					def __init__(   self				:	List[str],*_A				:	Optional[Any],**_A				:	int   ):







							"""simple docstring"""






							requires_backends(self,["tensorflow_text"]   )
