def METHOD_NAME(self, list_of_addresses: list):
    count_asn = 0
    count_ip = 0
    # Determine the type of address (IPv4, IPv6 or ASN) for
    # address in list_of_addresses:
    try:
        for address in list_of_addresses:
            if self.is_ip_range(address):
                # address looks like an IPv4 or IPv6 range
                self.save_ip(address)
                count_ip += 1
                continue
            if self.is_ip_network(address):
                # address looks like IPv4 or IPv6 network
                network = ipaddress.ip_network(address)
                self.save_ip((network[0], network[-1]))
                count_ip += 1
                continue
            if self.is_as_number(address):
                # address is ASN
                self.save_asn(address)
                count_asn += 1
                continue
        return (
            f"Processing complete. Added {count_asn} ASN's and {count_ip} IP "
            "ranges (either IPv4 and/or IPv6)"
        )
    except ValueError:
        return (
            f"An error occurred while adding new entries. Added {count_asn} AS "
            f"numbers and {count_ip} ip ranges (either IPv4 and/or IPv6)"
        )
    except Exception as e:
        logger.exception("Something really unexpected happened. Aborting")
        logger.exception(e)
        return (
            "An error occurred while adding new entries. "
            f"Added {count_asn} ASN's and {count_ip} IP's "
            "(either IPv4 and/or IPv6)"
        )