



"""simple docstring"""
import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
_lowerCAmelCase       :str	=   abspath(join(dirname(dirname(__file__)), 'src'))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='ignore', category=FutureWarning)





def 					lowerCamelCase_		(UpperCamelCase__						:						Dict				):
    from diffusers.utils.testing_utils import pytest_addoption_shared

    pytest_addoption_shared(A__				)





def 					lowerCamelCase_		(UpperCamelCase__						:						Union[str, Any]				):
    from diffusers.utils.testing_utils import pytest_terminal_summary_main

    _UpperCAmelCase				:    Any											=       terminalreporter.config.getoption('''--make-reports'''				)
    if make_reports:
        pytest_terminal_summary_main(A__	,			id=A__				)




'''simple docstring'''
import math






def      UpperCamelCase_				(      A__						):
	return math.sqrt(A__						) * math.sqrt(A__						) == num






def      UpperCamelCase_				(      A__						):
	a_      				=						0
	a_      				=						n
	while left <= right:
		a_      				=						(left + right) // 2
		if mid**2 == n:
			return True
		elif mid**2 > n:
			a_      				=						mid - 1
		else:
			a_      				=						mid + 1
	return False


if __name__ == "__main__":
		import doctest

		doctest.testmod()
