



def 		UpperCamelCase	(   snake_case__       :    str	)	->     bool:
   UpperCamelCase    :  Dict							=	[int(snake_case__	) for i in ip_va_address.split('.'	) if i.isdigit()]
   return len(snake_case__	) == 4 and all(0 <= int(snake_case__	) <= 254 for octet in octets	)


if __name__ == "__main__":
    __UpperCAmelCase          =       input().strip()
    __UpperCAmelCase          =       '''valid''' if is_ip_va_address_valid(ip) else '''invalid'''
    print(F"""{ip} is a {valid_or_invalid} IP v4 address.""")








import pytest

from datasets import inspect_metric, list_metrics, load_metric
@pytest.fixture
def 		UpperCamelCase	(   snake_case__       :    str	)	->     Optional[int]:
   monkeypatch.setattr('datasets.utils.deprecation_utils._emitted_deprecation_warnings'       ,     set()	)
@pytest.fixture
def 		UpperCamelCase	(   snake_case__       :    str	)	->     Any:



   class 				lowerCAmelCase_		:
          def __init__(			self,			SCREAMING_SNAKE_CASE_       )     ->		Optional[int]:
             UpperCamelCase    :  Tuple							=	metric_id






   class 				lowerCAmelCase_		:
          UpperCAmelCase__				:					Optional[int]        =  [MetricMock(a__							) for metric_id in ["accuracy", "mse", "precision", "codeparrot/apps_metric"]]
          def 					snake_case_       (			self       )     ->		str:
             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 		UpperCamelCase	(   snake_case__       :    str       ,     snake_case__       :    Any       ,     snake_case__       :    List[str]       ,     snake_case__       :    Optional[int]       ,     snake_case__       :    Union[str, Any]	)	->     int:
   if "tmp_path" in args:
      UpperCamelCase    :  Dict							=	tuple(arg if arg != 'tmp_path' else tmp_path for arg in args	)
   with pytest.warns(snake_case__       ,     match='https://huggingface.co/docs/evaluate'	):
      func(*snake_case__	)



