Implement `String#ipv4_address?`, which should return true if given object is an IPv4 address - four numbers (0-255) separated by dots.
It should only accept addresses in canonical representation, so no leading `0`s, spaces etc.
from ipaddress import ip_address


def ipv4_address(address: str) -> bool:
    try:
        return len(str(ip_address(address))) == len(address)
    except ValueError:
        return False

from ipaddress import ip_address


def ipv4_address(address: str) -> bool:
    try:
        return len(str(ip_address(address))) == len(address)
    except ValueError:
        return False
