def calculate_size(name, function):
    data_size = 0
    data_size += calculate_size_str(name)
    data_size += calculate_size_data(function)
    return data_size
Function to return the snat interface port list.
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/protocol/codec/atomic_long_alter_codec.py/calculate_size--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/db/l3_dvr_db.py/L3_NAT_with_dvr_db_mixin._create_snat_intf_ports_if_not_exists