





import pytest

from datasets import inspect_metric, list_metrics, load_metric



@pytest.fixture
def A_      (						A__							)    ->						Tuple:
       monkeypatch.setattr('datasets.utils.deprecation_utils._emitted_deprecation_warnings'						, set()							)



@pytest.fixture
def A_      (						A__							)    ->						Optional[Any]:





       class 					A__       :




          """simple docstring"""



          def __init__(   self   ,    lowercase)     ->		Tuple:







                 '''simple docstring'''

                 a__		:      List[str]					=							metric_id





       class 					A__       :




          """simple docstring"""



          __A  :							List[Any]			    =    [MetricMock(a__      ) for metric_id in ['''accuracy''', '''mse''', '''precision''', '''codeparrot/apps_metric''']]

          def 				__lowercase						(   self)     ->		List[Any]:







                 '''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 A_      (						A__						, A__						, A__						, A__						, A__							)    ->						Any:
       if "tmp_path" in args:
              a__		:      Union[str, Any]					=							tuple(arg if arg != 'tmp_path' else tmp_path for arg in args							)
       with pytest.warns(A__						, match='https://huggingface.co/docs/evaluate'							):
              func(*A__							)






def    __lowerCamelCase   (      A__						: int						,						A__						: int					)     ->    int:
   return int((input_a, input_a).count(0					) == 0					)


def    __lowerCamelCase   (      )     ->    None:
   assert and_gate(0						,						0					) == 0
   assert and_gate(0						,						1					) == 0
   assert and_gate(1						,						0					) == 0
   assert and_gate(1						,						1					) == 1


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





