def get_ip_addresses(embedded):
    """Get Ip addresses from embedded field data.

    Args:
        embedded (dict): embedded field data

    Returns:
        list: list of ip addresses
    """
    results = []
    addresses = embedded.get("data", "").get("addresses", "")
    if addresses != "":
        for address in addresses:
            ip_addr = address.get("ip", "")
            ip_addr = ip_addr.replace("[", "")
            ip_addr = ip_addr.replace("]", "")
            if ip_addr != "" or ip_addr != "[]":
                type_of_ip = validate_ip_address(ip_addr)
                if type_of_ip != "Invalid":
                    results.append({"value": ip_addr, "type": type_of_ip})
    return results
Get Ip addresses from embedded field data.

    Args:
        embedded (dict): embedded field data

    Returns:
        list: list of ip addresses
    
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseThreatIntelligence/dataminr_pulse_to_threat_intelligence_mapping.py