


"""simple docstring"""




import doctest
import logging
import os
import unittest
from pathlib import Path
from typing import List, Union

import transformers
from transformers.testing_utils import require_tf, require_torch, slow


__magic_name__						: Optional[Any]    =				logging.getLogger()




@unittest.skip('''Temporarily disable the doc tests.'''  )
@require_torch
@require_tf
@slow
class 			__snake_case   (unittest.TestCase  ):




							def   __a   (     self:    str     ,							A_:    Path     ,							A_:    Union[str, None] = None     ,							A_:    Union[List[str], None] = None     ,							A_:    Union[str, List[str], None] = None     ,							A_:    bool = True     ,							):
										__lowerCamelCase          =      [file for file in os.listdir(A_   ) if os.path.isfile(os.path.join(A_     ,							A_   )   )]

										if identifier is not None:
													__lowerCamelCase          =      [file for file in files if identifier in file]

										if n_identifier is not None:
													if isinstance(A_     ,							A_   ):
																for n_ in n_identifier:
																			__lowerCamelCase          =      [file for file in files if n_ not in file]
													else:
																__lowerCamelCase          =      [file for file in files if n_identifier not in file]

										__lowerCamelCase          =      ignore_files or []
										ignore_files.append("""__init__.py"""   )
										__lowerCamelCase          =      [file for file in files if file not in ignore_files]

										for file in files:
													# Open all files
													print("""Testing"""     ,							A_   )

													if only_modules:
																__lowerCamelCase          =      file.split("""."""   )[0]
																try:
																			__lowerCamelCase          =      getattr(A_     ,							A_   )
																			__lowerCamelCase          =      doctest.DocTestSuite(A_   )
																			__lowerCamelCase          =      unittest.TextTestRunner().run(A_   )
																			self.assertIs(len(result.failures   )     ,							0   )
																except AttributeError:
																			logger.info(f'{module_identifier} is not a module.'   )
													else:
																__lowerCamelCase          =      doctest.testfile(str("""..""" / directory / file   )     ,							optionflags=doctest.ELLIPSIS   )
																self.assertIs(result.failed     ,							0   )




							def   __a   (     self:    Any   ):
										__lowerCamelCase          =      Path("""src/transformers"""   )
										__lowerCamelCase          =      """modeling"""
										__lowerCamelCase          =      [
										    """modeling_ctrl.py""",
										    """modeling_tf_ctrl.py""",
										]
										self.analyze_directory(A_     ,							identifier=A_     ,							ignore_files=A_   )




							def   __a   (     self:    Tuple   ):
										__lowerCamelCase          =      Path("""src/transformers"""   )
										__lowerCamelCase          =      """tokenization"""
										self.analyze_directory(A_     ,							identifier=A_   )




							def   __a   (     self:    Dict   ):
										__lowerCamelCase          =      Path("""src/transformers"""   )
										__lowerCamelCase          =      """configuration"""
										self.analyze_directory(A_     ,							identifier=A_   )




							def   __a   (     self:    str   ):
										__lowerCamelCase          =      Path("""src/transformers"""   )
										__lowerCamelCase          =      ["""configuration""", """modeling""", """tokenization"""]
										self.analyze_directory(A_     ,							n_identifier=A_   )




							def   __a   (     self:    Tuple   ):
										__lowerCamelCase          =      Path("""docs/source"""   )
										__lowerCamelCase          =      ["""favicon.ico"""]
										self.analyze_directory(A_     ,							ignore_files=A_     ,							only_modules=A_   )








"""simple docstring"""




def       a_ (	lowercase__ :str     ):
			__lowerCamelCase          =      [int(lowercase__     ) for i in ip_va_address.split("""."""     ) if i.isdigit()]
			return len(lowercase__     ) == 4 and all(0 <= int(lowercase__     ) <= 254 for octet in octets     )


if __name__ == "__main__":
					__magic_name__						: Tuple    =				input().strip()
					__magic_name__						: Optional[int]    =				'valid' if is_ip_va_address_valid(ip) else 'invalid'
					print(f"""{ip} is a {valid_or_invalid} IP v4 address.""")




