
"""simple docstring"""





import doctest
import sys
import warnings
from os.path import abspath, dirname, join

import _pytest

from transformers.testing_utils import HfDoctestModule, HfDocTestParser


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
_a														=		abspath(join(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__		(			__snake_case	)							->		List[Any]:


					"""simple docstring"""





					config.addinivalue_line(
					    '''markers''',     '''is_pt_tf_cross_test: mark test to run only when PT and TF interactions are tested'''	)
					config.addinivalue_line(
					    '''markers''',     '''is_pt_flax_cross_test: mark test to run only when PT and FLAX interactions are tested'''	)
					config.addinivalue_line('''markers''',     '''is_pipeline_test: mark test to run only when pipelines are tested'''	)
					config.addinivalue_line('''markers''',     '''is_staging_test: mark test to run only in the staging environment'''	)
					config.addinivalue_line('''markers''',     '''accelerate_tests: mark test that require accelerate'''	)
					config.addinivalue_line('''markers''',     '''tool_tests: mark the tool tests that are run on their specific schedule'''	)



def       lowerCamelCase__		(			__snake_case	)							->		Union[str, Any]:


					"""simple docstring"""





					from transformers.testing_utils import pytest_addoption_shared

					pytest_addoption_shared(UpperCamelCase__	)



def       lowerCamelCase__		(			__snake_case	)							->		Optional[int]:


					"""simple docstring"""





					from transformers.testing_utils import pytest_terminal_summary_main

					_UpperCamelCase							 =  terminalreporter.config.getoption('''--make-reports'''	)
					if make_reports:
										pytest_terminal_summary_main(UpperCamelCase__,     id=UpperCamelCase__	)



def       lowerCamelCase__		(			__snake_case,     __snake_case	)							->		List[Any]:


					"""simple docstring"""





					if exitstatus == 5:
										_UpperCamelCase							 =  0


# Doctest custom flag to ignore output.
_a														=		doctest.register_optionflag("""IGNORE_RESULT""")

_a														=		doctest.OutputChecker






class     _UpperCAmelCase(    lowerCamelCase	):



		def 						UpperCAmelCase							(					self				,		__a				,		__a				,		__a)       ->       Tuple:






							'''simple docstring'''
							if IGNORE_RESULT & optionflags:
												return True
							return OutputChecker.check_output(self				,		__a				,		__a				,		__a)





_a														=		CustomOutputChecker
_a														=		HfDoctestModule
_a														=		HfDocTestParser











"""simple docstring"""
import math

from numpy import inf
from scipy.integrate import quad





def  lowerCamelCase_						(UpperCamelCase__		:		float							):
    if num <= 0:
        raise ValueError('''math domain error'''							)

    return quad(UpperCamelCase__     ,       0     ,       UpperCamelCase__     ,       args=(UpperCamelCase__)							)[0]





def  lowerCamelCase_						(UpperCamelCase__		:		float     ,       UpperCamelCase__		:		float							):
    return math.pow(UpperCamelCase__     ,       z - 1							) * math.exp(-x							)


if __name__ == "__main__":
  from doctest import testmod

  testmod()


