def METHOD_NAME(address: str) -> str:
    addr, _slash, _prefixlen = address.partition("/")
    if netaddr.valid_ipv4(addr):
        address_type = "IPv4"
    elif netaddr.valid_ipv6(addr):
        address_type = "IPv6"
    else:
        raise NotImplementedError
    return address_type