import ipaddress


def subnet_contains_ipv4(ip_address: str, subnet: str):
    """subnet_contains Check if ip address in subnet

    Arguments:
        ip_address {str} -- string
        subnet {str}

    Returns:
        bool
    """
    return ipaddress.ip_address(ip_address) in ipaddress.ip_network(subnet)