


'''simple docstring'''
import pytest

from datasets import inspect_metric, list_metrics, load_metric


@pytest.fixture
def       _lowercase							(					UpperCamelCase__							:       Union[str, Any]      ):
 monkeypatch.setattr('datasets.utils.deprecation_utils._emitted_deprecation_warnings',					set()      )


@pytest.fixture
def       _lowercase							(					UpperCamelCase__							:       Dict      ):

 class     _lowerCamelCase       :




  '''simple docstring'''


  def __init__(   self   ,   __lowercase    ):

   """simple docstring"""







   __A	:		Tuple	  =      metric_id


 class     _lowerCamelCase       :




  '''simple docstring'''
  __lowercase					:		Optional[Any]     				=    [MetricMock(snake_case_					) for metric_id in ['''accuracy''', '''mse''', '''precision''', '''codeparrot/apps_metric''']]


  def 			snake_case__ (   self    ):

   """simple docstring"""







   return self._metrics


 monkeypatch.setattr('datasets.inspect.huggingface_hub',					HfhMock()      )


@pytest.mark.parametrize(
    'func, args',					[(load_metric, ('metrics/mse',)), (list_metrics, ()), (inspect_metric, ('metrics/mse', 'tmp_path'))]      )
def       _lowercase							(					UpperCamelCase__							:       List[str],					UpperCamelCase__							:       Dict,					UpperCamelCase__							:       str,					UpperCamelCase__							:       List[str],					UpperCamelCase__							:       str      ):
 if "tmp_path" in args:
  __A	:		Dict	  =      tuple(arg if arg != 'tmp_path' else tmp_path for arg in args      )
 with pytest.warns(UpperCamelCase__,					match='https://huggingface.co/docs/evaluate'      ):
  func(*UpperCamelCase__      )










'''simple docstring'''
def       _lowercase							(					UpperCamelCase__							:       int,					UpperCamelCase__							:       int      ):
 return 1 if input_a == input_a else 0


def       _lowercase							(					):
 assert xnor_gate(0,					0      ) == 1
 assert xnor_gate(0,					1      ) == 0
 assert xnor_gate(1,					0      ) == 0
 assert xnor_gate(1,					1      ) == 1


if __name__ == "__main__":
 print(xnor_gate(0, 0))
 print(xnor_gate(0, 1))
 print(xnor_gate(1, 0))
 print(xnor_gate(1, 1))






