def is_valid_ip(ip_address):
try:<EOL><INDENT>ip = ipaddress.ip_address(u'<STR_LIT>' + ip_address)<EOL>return True<EOL><DEDENT>except ValueError as e:<EOL><INDENT>return False<EOL><DEDENT>
Check Validity of an IP address